Skip to main content
View as Markdown

Accept an invitation

POST /api/v1/invitations/{invitationId}/accept

Accepts an invitation addressed to the caller, joining the organization with the invited role. Interactive (JWT) sessions only.

Path parameters

NameTypeRequiredDescription
invitationIdstringyesInvitation UUID

Example request

curl https://api.mobilenexthq.com/api/v1/invitations/{invitationId}/accept \
-X POST \
-H 'Authorization: Bearer mob_...'

Responses

204 — Invitation accepted; the caller is now a member of the organization

401 — Missing or invalid Bearer token

{
"error": {
"code": "string",
"message": "string"
}
}

403 — Caller lacks permission for this action (e.g. not an admin)

{
"error": {
"code": "string",
"message": "string"
}
}

404 — Resource not found

{
"error": {
"code": "string",
"message": "string"
}
}