---
title: "Gets the invitation identified by invitationId"
method: GET
path: "/providers/Microsoft.DataShare/locations/{location}/consumerInvitations/{invitationId}"
tags: ["ConsumerInvitation"]
---

# Gets the invitation identified by invitationId

`GET /providers/Microsoft.DataShare/locations/{location}/consumerInvitations/{invitationId}`

Get an invitation

## Path parameters

- `location` string, required
- `invitationId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Success

- ConsumerInvitation — Base data transfer object implementation for proxy resources.
  - `id` string — The resource id of the azure resource
  - `name` string — Name of the azure resource
  - `type` string — Type of the azure resource

## Other responses

- `default` — An error response received from the Microsoft.DataShare resource provider.

---

[API](https://skmtc.net/azure/apis/datashare-microsoft-datashare-datashare.md) · [All operations](https://skmtc.net/azure/apis/datashare-microsoft-datashare-datashare/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/datashare-microsoft-datashare-datashare/revisions/121238d8f58e/schema)
