Skip to content
FlagPilot
Menu

Management API

Invitations

Invite people by a one-time link, list and revoke invitations, preview and accept them.

Creating an invitation returns its token exactly once; only a hash is stored. A token works once and for 7 days. Preview and accept take the token in the JSON body, never in a URL, and answer the same 404 for unknown, expired, revoked and used tokens.

Acceptance is by possession of the token, and it never lowers a role the user already has.

Operations

Invitations operations
OperationRequestWho may call it
createInvitationPOST /api/orgs/{org}/invitationsadmin or above
listInvitationsGET /api/orgs/{org}/invitationsadmin or above
revokeInvitationDELETE /api/orgs/{org}/invitations/{id}admin or above
previewInvitationPOST /api/invitations/previewany signed-in user with the token
acceptInvitationPOST /api/invitations/acceptany signed-in user with the token

Management API requests carry a user token and are checked against the caller’s organization role. Delivery API requests carry an SDK key; the two never cross. Errors are always { error: { code, message } }.