Team

Accept an invitation, create the account and sign in

POST
/invitations/accept

Accept an invitation, create the account and sign in.

Header Parameters

X-Requested-With*string

CSRF guard: must be quartermaster on every mutation.

Request Body

application/json

Accept an invitation: the invitee's name and new password, with the link token.

Accept an invitation: the invitee's name and new password, with the link token.

token*string

One-time link token from an invitation or reset email.

Match^[\w-]+$
Length20 <= length <= 200
name*string

Display name.

Length1 <= length <= 120
password*string

Password (never returned by the API).

Length12 <= length <= 200

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/invitations/accept" \  -H "X-Requested-With: quartermaster" \  -H "Content-Type: application/json" \  -d '{    "token": "Zm9yLWRvY3MtZXhhbXBsZS1vbmx5LW5vdC1hLXRva2Vu",    "name": "Sam Manager",    "password": "a-new-strong-passphrase"  }'
{  "user": {    "id": "string",    "email": "string",    "name": "string",    "role": "OWNER",    "organization": {      "id": "string",      "name": "string",      "timezone": "string",      "currency": "string"    },    "operator": true  }}