Taifa Identity. Docs
OpenAPI Developers

API reference

Attest

Management API contract View .md

POST/v1/link-challenges/{challenge_id}/attest

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

Parameters

NameInTypeRequiredDescription
challenge_idpathstringYes
idempotency-keyheaderstringYes

Request body

application/jsonRequiredAttestation

FieldTypeRequiredDescription
reasonstringYesValidation: min length 8; max length 500
local_account_idstringYesValidation: min length 1; max length 200
local_auth_timeintegerYes
local_auth_methodstringYesValidation: min length 1; max length 100
local_session_digeststringYesValidation: pattern ^[0-9a-f]{64}$
central_issuerstringYes
central_subjectstringYes
central_auth_timeintegerYes
central_acrtaifa-mfa | taifa-phishing-resistantYes
central_sid_digeststringYesValidation: pattern ^[0-9a-f]{64}$

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/link-challenges/REPLACE_WITH_CHALLENGE_ID/attest' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'idempotency-key: REPLACE_WITH_IDEMPOTENCY_KEY' \
  -H 'Content-Type: application/json' \
  --data '{
  "reason": "REPLACE_WITH_REASON",
  "local_account_id": "REPLACE_WITH_LOCAL_ACCOUNT_ID",
  "local_auth_time": 0,
  "local_auth_method": "REPLACE_WITH_LOCAL_AUTH_METHOD",
  "local_session_digest": "REPLACE_WITH_LOCAL_SESSION_DIGEST",
  "central_issuer": "REPLACE_WITH_CENTRAL_ISSUER",
  "central_subject": "REPLACE_WITH_CENTRAL_SUBJECT",
  "central_auth_time": 0,
  "central_acr": "REPLACE_WITH_CENTRAL_ACR",
  "central_sid_digest": "REPLACE_WITH_CENTRAL_SID_DIGEST"
}'

Response example

No response example in the current specification.

Popular

Browse by section