POST /organization/invites/accept — accept an invite by token (logged-in; the account email must match the invite). Returns the joined organization id.
POST
/api/organization/invites/accept
const url = 'https://example.com/api/organization/invites/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/organization/invites/accept \ --header 'Content-Type: application/json' \ --data '{ "token": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
string
Examplegenerated
{ "token": "example"}Responses
Section titled “Responses”Media typeapplication/json
POST /organization/invites/accept response — the joined organization id.
object
organization_id
required
string format: uuid
Examplegenerated
{ "organization_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}