Skip to content

Claim a team invite as a new local account

POST
/api/auth/invite-claim/
curl --request POST \
--url http://localhost:8000/api/auth/invite-claim/ \
--header 'Content-Type: application/json' \
--data '{ "token": "example", "password": "example" }'

Local-auth deployments only (#818): possession of the invite token proves mailbox control, so the invitee sets a password for the invite’s email here, signs in via POST /api/auth/login/, and then accepts the invite through the normal accept endpoint.

404 when the deployment uses Firebase sign-in or the token is unknown; 410 expired/used invite; 409 the email already has a local account (sign in instead). Throttled (10/min).

  • None

Request body for POST /api/auth/invite-claim/ (#818).

object
token
required

Invite token from the email link.

string
>= 1 characters <= 64 characters
password
required

Password the invitee chooses (min 8 chars, not a common password, not all digits).

string
>= 8 characters <= 128 characters
Examplegenerated
{
"token": "example",
"password": "example"
}
Media typeapplication/json
object
ok
boolean
email
string
Examplegenerated
{
"ok": true,
"email": "example"
}
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string
Examplegenerated
{
"detail": "example"
}
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string
Examplegenerated
{
"detail": "example"
}
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string
Examplegenerated
{
"detail": "example"
}
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string
Examplegenerated
{
"detail": "example"
}