Approve or deny a challenge with a device signature over its canonical form.
POST
Secret API key operationId: respond_challenge/v1/os/challenges/{id}/respond Authorization
Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.
Path parameters
idstring<uuid> requiredChallenge id
Request body · required
approveboolean requireddevice_idstring<uuid> required uuidsignaturestringbase64(DER ECDSA/P-256 signature) over the challenge's `canonical`. Required to approve.
Responses
200 Recorded
{
"data": {
"id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
"status": "string"
},
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 401 Bad signature
404 Not found
409 No longer pending
Request
curl -X POST "https://api.identrahq.com/v1/os/challenges/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/respond" \
-H "Content-Type: application/json" \
-d '{
"approve": false,
"device_id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
"signature": "string"
}'Try it
live requestPOST
https://api.identrahq.com/v1/os/challenges/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/respond