Taifa Identity. Docs
OpenAPI Developers

API reference

Propose Service

Management API contract View .md

POST/v1/projects/{project_id}/service-identities

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

Parameters

NameInTypeRequiredDescription
project_idpathstringYes
idempotency-keyheaderstringYes

Request body

application/jsonRequiredServiceProposal

FieldTypeRequiredDescription
reasonstringYesValidation: min length 8; max length 500
issuerstringYes
subjectstringYesValidation: min length 1; max length 255
capabilityaccount-link-attestorYes

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/projects/REPLACE_WITH_PROJECT_ID/service-identities' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'idempotency-key: REPLACE_WITH_IDEMPOTENCY_KEY' \
  -H 'Content-Type: application/json' \
  --data '{
  "reason": "REPLACE_WITH_REASON",
  "issuer": "REPLACE_WITH_ISSUER",
  "subject": "REPLACE_WITH_SUBJECT",
  "capability": "REPLACE_WITH_CAPABILITY"
}'

Response example

No response example in the current specification.

Popular

Browse by section