Redeem a scanned ticket: consume it and enroll this device's key for the ticket's user.
POST
Secret API key operationId: enroll_via_ticket/v1/os/devices/ticket/enroll Authorization
Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.
Request body · required
labelstringplatformstring requiredpublic_keystring requiredbase64(SEC1 uncompressed P-256 public key) from the device enclave / keystore.
push_tokenstringticketstring required
Responses
201 Enrolled
{
"data": {
"active": false,
"created_at": "2026-01-15T09:30:00Z",
"id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
"label": "string",
"last_seen_at": "2026-01-15T09:30:00Z",
"platform": "string"
},
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 401 Unknown/expired/consumed ticket
422 Invalid request
Request
curl -X POST "https://api.identrahq.com/v1/os/devices/ticket/enroll" \
-H "Content-Type: application/json" \
-d '{
"label": "string",
"platform": "ios",
"public_key": "string",
"push_token": "string",
"ticket": "string"
}'Try it
live requestPOST
https://api.identrahq.com/v1/os/devices/ticket/enroll