# Get an invite

`GET /api/v1/invites/{token}`

What an invite link offers, before accepting it. No sign-in needed.

Sign-in: none.

Section: Members and invites. Operation id in openapi.json: `get_invite`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `token` | path | yes | string | The token from the link's address. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

The invite.

`application/json`: InviteInfo

| Field | Type | Required | Description |
|---|---|---|---|
| `expiresAt` | string | yes |  |
| `role` | WorkspaceRole | yes |  |
| `workspaceName` | string | yes |  |

### 400

Bad Request.

- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it
- `invite.not_found`: invite does not exist

### 410

Gone.

- `invite.expired`: invite is older than 72 hours
- `invite.used`: invite was already accepted

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
