Skip to content
Torii docs

Accept an organization invitation by its token.

POST
/_torii/organizations/invitations/accept
curl --request POST \
--url https://your-app.torii.so/_torii/organizations/invitations/accept \
--header 'Content-Type: application/json' \
--data '{ "token": "example" }'
Media type application/json
object
token
required
string
>= 1 characters
Example generated
{
"token": "example"
}

OK

Media type application/json
object
id
required
string format: uuid
name
required
string
role
required

Caller’s role key in this org (e.g. admin | member).

string
roleName

Human-readable display name of the caller’s role, from the org’s bound role set.

string | null
Example generated
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"role": "example",
"roleName": "example"
}