Taifa Identity. Docs
OpenAPI Developers

API reference

Propose

Management API contract View .md

POST/v1/projects/{project_id}/lifecycle-service-grants

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

FieldTypeRequiredDescription
reasonstringYesValidation: min length 8; max length 500
issuerstringYesValidation: min length 1; max length 2048
subjectstringYesValidation: min length 1; max length 255

Responses

201Successful Response

Content type: application/jsonGrantRead

FieldTypeRequiredDescription
idstringYes
project_idstringYes
issuerstringYes
subjectstringYes
capabilitylifecycle-consumerYes
statuspending_review | effective | revokedYes
activebooleanYes
versionintegerYesValidation: minimum 1; maximum 3
proposal_digeststringYesValidation: pattern ^[a-f0-9]{64}$
proposerstringYes
approverstring | nullYes
proposal_audit_idstringYes
approval_audit_idstring | nullYes
revocation_audit_idstring | nullYes
created_atstring · date-timeYes
approved_atstring | nullYes
revoked_atstring | nullYes

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/lifecycle-service-grants' \
  -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"
}'

Response example

No response example in the current specification.

Popular

Browse by section