For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invitations

Accept Invitation

post

Accept a pending invitation, resolving it to an active membership and optionally setting a first password.

Setting a first password makes the account usable for the first time, so it is reported to GrowthSignalPort as a signup.

Body
full_namestring · max: 255 · nullableOptional

Filled in only if not already set.

passwordstring · max: 1024 · nullableOptional

Sets the invited identity's password in the same step, when the preview reported needs_password. Needs no mail: the link is the proof, whether it was emailed or an admin handed it over.

terms_acceptedbooleanOptional

Whether the caller accepted this deployment's terms.

Default: false
tokenstringRequired
Responses
200

Successful Response

application/json

What accepting produces: enough for the accept page to say where the visitor landed.

No session and no token. When the request carried a password, the identity can sign in straight away; otherwise it stays password-less until claimed by signup or a provider sign-in.

can_sign_inbooleanOptional

Whether the invited address can sign in now, with a password (this accept's included) or through a provider. False when it accepted without one and has never signed in.

Default: true
organization_namestringRequired
password_setbooleanOptional

Whether this accept set the identity's password.

Default: false
rolestringRequired
verification_pendingbooleanOptional

Whether the invited address chose a password through signup and has not verified it yet, so it has to open its verification link before it can sign in.

Default: false
post/api/v1/invitations/accept
POST /api/v1/invitations/accept HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 76

{
  "full_name": "text",
  "password": "text",
  "terms_accepted": false,
  "token": "text"
}
{
  "can_sign_in": true,
  "organization_name": "text",
  "password_set": false,
  "role": "text",
  "verification_pending": false,
  "ways_in": [
    "provider"
  ]
}

Validate Invitation

post

Look up a pending invitation by its token, for the accept page to render before committing.

A POST with the token in the body, not a GET with it in the URL: the token is a bearer credential, and a URL path is what an access log or an intermediate proxy routinely retains.

Body

The preview lookup's body.

A POST with the token in the body rather than a GET with it in the URL, matching AcceptInvitationRequest: the token is a bearer-style credential (see Invitation.token_hash's docstring), and a URL is one a proxy or an access log routinely retains, which a request body is not.

tokenstringRequired
Responses
200

Successful Response

application/json

What an unauthenticated visitor sees before committing to accept.

Deliberately narrow: the address it was sent to, the organization's name, and the role on offer. The token is the caller's only credential here, not a session, so this carries nothing that identifies who sent it or any other member.

can_sign_inbooleanRequired

Whether the invited address can already sign in, with a password or through a provider.

emailstringRequired
expires_atstring · date-timeRequired
needs_passwordbooleanRequired

Whether accepting should also set the invited address's first password. False when the address already has a way in, and also when another organization has it as a member or invitee, since this link may not choose a password for it then; can_sign_in tells the two apart. Accept refuses a password whenever this is false.

organization_namestringRequired
rolestringRequired
post/api/v1/invitations/validate
POST /api/v1/invitations/validate HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "token": "text"
}
{
  "can_sign_in": true,
  "email": "text",
  "expires_at": "2026-01-01T00:00:00.000Z",
  "needs_password": true,
  "organization_name": "text",
  "role": "text",
  "ways_in": [
    "provider"
  ]
}

Last updated

Was this helpful?