> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Invitation

> Returns one invitation, in the same shape as the list

```
GET /openapi/memorylake/admin/v1/invitations/{id}
```

Returns one invitation, in the same shape as the list. A pending invitation past its deadline reads as expired. Invitations of other teams are reported as not found.

<Note>
  **Permission required:** `member:invite`
</Note>

### Path Parameters

<ParamField path="id" type="string" required>
  Identifier of the invitation
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/invitations/9d971b8b5813eb1ecceec31354c101b4' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### Response

<ResponseField name="data" type="object">
  <Expandable title="Invitation object">
    <ResponseField name="created_at" type="integer">First invitation time, Unix seconds</ResponseField>
    <ResponseField name="email" type="string">Invitee email address (normalised to lowercase)</ResponseField>
    <ResponseField name="expires_at" type="integer">Expiry time of the current invitation email, Unix seconds</ResponseField>
    <ResponseField name="id" type="string">Stable identifier of this invitation</ResponseField>
    <ResponseField name="role" type="string">Role the invitee will hold on acceptance: tenant\_admin | tenant\_member | \<custom role></ResponseField>
    <ResponseField name="status" type="string">Invitation state. One of: `pending`, `accepted`, `rejected`, `expired`, `revoked`.</ResponseField>
    <ResponseField name="accepted_at" type="integer">Acceptance time, Unix seconds. Present only when accepted.</ResponseField>
    <ResponseField name="accepted_principal_id" type="string">principal\_id of the member this invitation produced. Present only when accepted.</ResponseField>
    <ResponseField name="last_invited_at" type="integer">Most recent invitation email time, Unix seconds. Omitted on rows that predate this field.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "message": "Operation completed successfully",
    "data": {
      "created_at": 1760000000,
      "email": "alice@example.com",
      "expires_at": 1760000000,
      "id": "c079f4f4e529b9d687b3cce00eeb9644",
      "role": "tenant_member",
      "status": "pending",
      "accepted_at": 1760000000,
      "accepted_principal_id": "5a4863beca31b3b37f780badf1652511",
      "last_invited_at": 1760000000
    }
  }
  ```
</ResponseExample>

### Errors

Errors answer with `success: false`, a `message` and an `error_code`. See [Error Codes](/features/memorylake/api-reference/errors) for every code.

| Status | Meaning |
| - | - |
| `401` | The API key is missing, invalid, disabled or expired |
| `403` | The key is not allowed to do this |
| `404` | The resource does not exist |
| `422` | The body or a parameter failed validation |
| `429` | Too many requests. Wait for the time in `Retry-After` |
| `500` | Server-side error |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.