Send an invitation
Invites a user to join the organization. If the email address already belongs to an active member, the request is rejected with409 Conflict.
Endpoint
Headers
Bearer token. Format:
Bearer <token>.The ID of the organization sending the invite. Must match the
:id path parameter.Path parameters
The unique identifier of the organization.
Body
Email address of the person to invite. The value is lowercased before storage.
Role to assign when the invite is accepted. Built-in values:
"owner", "admin", "billing", "member". You can also pass the name of a custom role created via the roles endpoints.Response
true on successful dispatch.Confirmation message, e.g.
"Invitation sent to jane@example.com.".Invite tokens are valid for 7 days. If the recipient does not accept within that window, you will need to send a new invite.
Accept an invitation
Exchanges an invite token to complete membership. The token is consumed on acceptance — clicking the link again does nothing.Endpoint
Headers
Bearer token of the user accepting the invite. The user must be authenticated before accepting. Format:
Bearer <token>.Body
The invite token extracted from the magic link URL. Found in the
token query parameter of the invite email link.Response
true on successful acceptance.Confirmation message. Value:
"Successfully joined the organization!".