コンテンツにスキップ

Respond to approval CIBA request

POST
/api/approval-artifacts/{artifactId}/ciba/respond
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/approval-artifacts/example/ciba/respond \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "decision": "approved", "auth_req_id": "auth_req_123", "user_code": "123456" }'

Submit a CIBA user code and decision for an approval artifact.

artifactId
required
string

Respond to a CIBA approval artifact from a device page.

Media type application/json
object
decision
required
string
Allowed values: approved denied
auth_req_id
required
string
user_code
required
string
Example
{
"decision": "approved",
"auth_req_id": "auth_req_123",
"user_code": "123456"
}

CIBA device response result.

Media type application/json
object
auth_req_id
required
string
status
required
string
decision_at
required
integer format: int64
Example
{
"auth_req_id": "g1:apac:1:cba_internal",
"status": "approved",
"decision_at": 1770000000000
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}