POST
Accept an invitation

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
token
string
required

Response

The organization joined and the role granted. organization_id is present here and never in a preview, so the caller can switch into the organization with PUT /me/active-org: accepting does not switch by itself.