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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” artifactId
required
string
Request Body required
Section titled “Request Body required ”Respond to a CIBA approval artifact from a device page.
Media type application/json
object
decision
required
string
auth_req_id
required
string
user_code
required
string
Example
{ "decision": "approved", "auth_req_id": "auth_req_123", "user_code": "123456"}Responses
Section titled “ Responses ”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}default
Section titled “default ”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"}