# Accept invite

Accepts an invite, creating the user if needed, adds the membership and starts a console session. Callable by anyone holding the token; works once and only before the invite expires.

`POST /v1/invites/{token}/accept`

Accepts an invite, creating the user if needed, adds the membership and starts a console session. Callable by anyone holding the token; works once and only before the invite expires.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `token` | path | yes | Invite token from the invite link. |

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "ok": true
}
```
