Manual
CLI
API
Log in Get started free

Accept an invite

Joins the organisation of an invitation and signs in. A person without an account gets one.

Joins the organisation of an invitation and signs in. A person without an account gets one.

HTTP
POST /auth/invites/{token}/accept

Access: No token needed.

Path parameters #

ParameterDescription
tokenThe token from the invitation link.

Request body #

JSON.

FieldTypeRequiredDescription
namestringyesThe name for a new account. At most 80 characters. Ignored when the address already has an account.
passwordstringyesThe password for a new account, at least 8 characters. When the address already has an account, it must be that account’s password.
JSON
{ "name": "Grace Hopper", "password": "correct horse battery" }

Response 201 #

The person joined the organisation and a session started.

JSON
{
  "token": "9f2c...e1",
  "expiresAt": "2026-10-23T09:30:00+00:00",
  "user": {
    "id": "0197a3c2-5b1e-7c4a-9d2f-3e8b6a1f0c55",
    "email": "ada@example.com",
    "name": "Ada Lovelace",
    "locale": "en-GB"
  }
}

Response fields #

FieldTypeDescription
tokenstringThe session token. Send it as Authorization: Bearer <token>. It is shown only once.
expiresAtstringWhen the token expires, as an ISO 8601 timestamp. A token lasts 7 days.
user.idstringThe id of the user.
user.emailstringThe email address.
user.namestringThe name.
user.localestring or nullThe interface language the user picked, for example en-GB, or null until they pick one.

Errors #

StatuserrorWhen
410invalid_or_expired_tokenThe token is unknown or has expired.
403wrong_passwordThe address already has an account and the password is not its password.
422invalid_requestpassword is too_short (shorter than the minimum of the inviting organisation, at least 8) or too_weak (the organisation requires upper case, lower case and a digit). The rules apply to new accounts.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.