# Get Invitation

See one invitation that has not been accepted yet.

`GET https://connect.mindcloud.co/v2/invitations/:invitationId`

Permissions: `member:view`.

## Parameters

### Path

- `invitationId` (string, required): The invitation's id, from List Invitations: the pending member's userId.

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/invitations/Kx2pLm9QrT4v' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `id` (string): The invitation's id: the pending member's userId (List Members), until they sign up.
- `email` (string): Who was invited.
- `roleId` (string): The role they get when they join, from List Roles.
- `roleName` (string): That role's name.
- `status` (string): pending while they have not signed up. Create Invitation answers accepted for someone who already had a MindCloud account and joined at once; they are then a member (List Members).
  Allowed values:
    - `pending`
    - `accepted`
- `createdOn` (date): When they were invited.
