Taifa Identity. Docs
OpenAPI Developers

API reference

Invite

Management API contract View .md

POST/v1/institutions/{institution_id}/invitations

Authentication Bearer access token with audience taifa-management. Roles and local eligibility are reviewed separately from the OpenAPI bearer scheme.

Parameters

NameInTypeRequiredDescription
institution_idpathstringYes
idempotency-keyheaderstringYes

Request body

application/jsonRequiredInvitationCreate

FieldTypeRequiredDescription
reasonstringYesValidation: min length 8; max length 500
recipientstringYesValidation: min length 3; max length 254
expires_in_hoursintegerNoValidation: minimum 1; maximum 168

Responses

201Successful Response

Content type: application/jsonUnspecified response schema

No fields declared in the current specification.

Other responses

StatusDescriptionSchema
422Validation ErrorHTTPValidationError

Request example

Illustrative only. TypeScript runs in Node.js on the server. Keep management tokens out of browser bundles. Replace the host, token, path values, and any header or required body placeholders before use. Examples do not send requests.

Shell
curl -X POST 'https://YOUR_IDENTITY_HOST/v1/institutions/REPLACE_WITH_INSTITUTION_ID/invitations' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'idempotency-key: REPLACE_WITH_IDEMPOTENCY_KEY' \
  -H 'Content-Type: application/json' \
  --data '{
  "reason": "REPLACE_WITH_REASON",
  "recipient": "REPLACE_WITH_RECIPIENT"
}'

Response example

No response example in the current specification.

Popular

Browse by section