Skip to main content

Accept an invite and join an organization

POST 

/api/v1/invites/:code/use

Consume an invite code and move the caller into the invited organization.

Handles three scenarios:

  • No org: join directly.
  • Same org: no-op, return the org.
  • Different org: leave the current org, then join the new one. Owners with other members are blocked (must transfer ownership first).

The invite is claimed atomically before any destructive operations; on failure the claim is best-effort rolled back. Rate limit: 10 / hour / IP.

Request

Responses

Successful Response