Taifa Identity. Docs
OpenAPI
Developers

API reference

Create

Management API contract View .md

POST/v1/institutions/{institution_id}/websites

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/jsonRequiredFields

FieldTypeRequiredDescription
namestringYesValidation: min length 2; max length 200
websitestringYesValidation: min length 8; max length 2048
connector_kindstringNoValidation: pattern ^(taifa_connector|standard_oidc)$
connector_productstring | nullNo
preview_digeststring | nullNo
owner_person_idstringYesValidation: min length 1
environmentstringYesValidation: pattern ^(staging|production)$
redirect_urisstring[]NoValidation: max items 16
post_logout_redirect_urisstring[]NoValidation: max items 16
backchannel_logout_uristring | nullNo
requested_scopesstring[]YesValidation: min items 1; max items 3
reasonstringYesValidation: min length 8; max length 500

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/websites' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'idempotency-key: REPLACE_WITH_IDEMPOTENCY_KEY' \
  -H 'Content-Type: application/json' \
  --data '{
  "name": "REPLACE_WITH_NAME",
  "website": "REPLACE_WITH_WEBSITE",
  "owner_person_id": "REPLACE_WITH_OWNER_PERSON_ID",
  "environment": "REPLACE_WITH_ENVIRONMENT",
  "requested_scopes": [],
  "reason": "REPLACE_WITH_REASON"
}'

Response example

No response example in the current specification.

Popular

Browse by section