Skip to content

Accept Invitation Existing Account

POST
/api/auth/invitations/accept-existing
curl --request POST \
--url https://example.com/api/auth/invitations/accept-existing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "token": "example" }'

Accept an invitation as the signed-in user. The signed-in account’s email must be the invited address — a token forwarded to (or intercepted by) someone else cannot join THEIR account to the organization.

Media type application/json
InvitationTokenRequest

BUG-377: token-only body (lookup, and accept for a signed-in user).

object
token
required
Token
string
>= 1 characters <= 256 characters
Example generated
{
"token": "example"
}

Successful Response

Media type application/json
OrganizationMemberResponse

Organization member response

object
created_at
required
Created At
string format: date-time
id
required
Id
string format: uuid
organization_id
required
Organization Id
string format: uuid
role
required
UserRole

User roles

string
Allowed values: admin owner member viewer
user_email
Any of:
string
user_id
required
User Id
string format: uuid
user_name
Any of:
string
Example
{
"role": "admin"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}