Accept Invitation — POST /api/v1/auth/invitations/accept
Accept Invitation
Redeem an invitation: create the account with the invited role and projects, sign in.
Endpoint: POST /api/v1/auth/invitations/accept
Authentication: No access token or API key is needed.
Parameters
Section titled “Parameters”This endpoint takes no parameters.
Request body
Section titled “Request body”| Content type | Body | Required |
|---|---|---|
application/json | AcceptInvitationRequest | yes |
Responses
Section titled “Responses”| Status | Meaning | Body |
|---|---|---|
201 | Successful Response | TokenResponse or MfaEnrollmentRequiredResponse (application/json) |
422 | Validation Error | HTTPValidationError (application/json) |
Errors this endpoint returns, read from its source code:
403, with the message “SSO is required for this workspace. Sign in with SSO instead of setting a password”409, with messages such as “An account with this email already exists. Sign in instead”, “That username is taken. Choose another”
Statuses not listed here are explained in Errors and retries.
More details
Section titled “More details”- Group: Authentication
- Operation ID:
accept_invitation_api_v1_auth_invitations_accept_post - Source code:
backend/app/routers/auth.py, line 147 - Specification: OpenAPI JSON