Dozor
User

Claim a pending invite

Atomic transaction — `Membership` create + invite `status → ACCEPTED` in one round-trip so a crash between writes can't leave a dangling PENDING row for someone who already has membership. Returns the org id + name so the client can navigate to it without a profile refetch.

POST/api/user/invites/{id}/accept

Atomic transaction — Membership create + invite status → ACCEPTED in one round-trip so a crash between writes can't leave a dangling PENDING row for someone who already has membership. Returns the org id + name so the client can navigate to it without a profile refetch.

Path Parameters

id*string

Invite id (cuid)

Response Body

application/json

curl -X POST "https://loading/api/user/invites/string/accept"
{
  "organizationId": "org_partner",
  "organizationName": "Partner Corp"
}
Empty
Empty
Empty