Documentation menu

Organization Invitations

4 operations.

List organization invitations

GET/api/v1/organizations/{organizationIdOrSlug}/invitations

Lists invitation metadata for the addressed Organization within the caller's live scope. Tokens and delivery credentials are never returned; results are bounded by an opaque cursor.

Parameters

path

NameTypeRequiredDescription
organizationIdOrSlugstringrequiredIdentifies the organization by its stable identifier or slug. Applies to List organization invitations.

query

NameTypeRequiredDescription
limitintegeroptionalSets the maximum number of resources returned in this page. Applies to List organization invitations.
cursorstringoptionalOpaque cursor returned by the previous page; omit it to read the first page. Applies to List organization invitations.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
  • pagination (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Create an organization invitation

POST/api/v1/organizations/{organizationIdOrSlug}/invitations

Creates a scoped invitation with optional Project role assignments and an expiry of no more than seven days. The Idempotency-Key makes retries safe; only metadata is returned and the invitation token is never exposed.

Parameters

path

NameTypeRequiredDescription
organizationIdOrSlugstringrequiredIdentifies the organization by its stable identifier or slug. Applies to Create an organization invitation.

header

NameTypeRequiredDescription
Idempotency-Keystringoptional

Request body

required — Request body for: Create an organization invitation.

application/json

NameTypeRequiredDescription
emailstringrequired
role"owner" | "admin" | "member"optional
expiresAtstringoptional
projectRolesarray<object>optional

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400Bad Request
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid credentials
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
409Request conflicts with current state of the resource, including safe deployment conflict classifications.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.
application/json
PublicApiError
  • error (required): object

Get an organization invitation

GET/api/v1/organizations/{organizationIdOrSlug}/invitations/{invitationId}

Returns metadata for one invitation in the addressed Organization. Invitation tokens, encrypted delivery data, and provider details are never exposed.

Parameters

path

NameTypeRequiredDescription
organizationIdOrSlugstringrequiredIdentifies the organization by its stable identifier or slug. Applies to Get an organization invitation.
invitationIdstringrequiredIdentifies the organization invitation being addressed. Applies to Get an organization invitation.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Cancel an organization invitation

DELETE/api/v1/organizations/{organizationIdOrSlug}/invitations/{invitationId}

Cancels a pending invitation in the addressed Organization using the existing locked invitation and delivery-outbox lifecycle. Accepted or missing invitations are not cancellable.

Parameters

path

NameTypeRequiredDescription
organizationIdOrSlugstringrequiredIdentifies the organization by its stable identifier or slug. Applies to Cancel an organization invitation.
invitationIdstringrequiredIdentifies the organization invitation being addressed. Applies to Cancel an organization invitation.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object