Invitations
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.
Filled in only if not already set.
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.
Whether the caller accepted this deployment's terms.
falseSuccessful Response
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.
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.
trueWhether this accept set the identity's password.
falseWhether 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.
falseValidation Error
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"
]
}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.
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.
Successful Response
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.
Whether the invited address can already sign in, with a password or through a provider.
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.
Validation Error
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?
