API reference / Organizations and teams
Accept an invitation
POST/v1/invitations/accept
Accepts an invitation. The email link sends token. Someone with no organization yet may instead send invitation_id from Me.pending_claims for an owner claim already addressed to their verified email. Exactly one of the two is set.
Before you call it
- CredentialAny signed-in member or API key of the organization.
Request body
| Field | What it does |
|---|---|
tokenstring | Secret from the invitation or claim link |
invitation_idstring (uuid) | A pending owner claim for the signed-in email, from Me.pending_claims |
Response 200
Joined the organization
| Field | What it does |
|---|---|
org_idstring (uuid)required | No description in the spec yet. |
org_namestringrequired | No description in the spec yet. |
org_typeenumrequired | No description in the spec yet. One of |
org_statusenumrequired | No description in the spec yet. One of |
role_keystringrequired | No description in the spec yet. |
role_namestringrequired | No description in the spec yet. |
permissionsstring[]required | No description in the spec yet. |
platform_namestring | The platform partner this organization banks through, if any |
Errors to handle
| Code | What it means and what to do |
|---|---|
invitation_inactive409 | this invitation is no longer valid; ask the platform for a new one |
invitation_email_mismatch403 | this invitation was sent to a different email address |
email_not_verified403 | verify your email address to continue |
Every error is a Problem document. Branch on code; quote request_id to support.