Approve a device login identified by its user code, as the signing-in user.
POST
Secret API key operationId: approve/v1/os/login/approve Authorization
Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.
Request body · required
user_codestring required
Responses
200 Approved
{
"data": {},
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 404 No pending login for that code
409 Login no longer pending / expired
Request
curl -X POST "https://api.identrahq.com/v1/os/login/approve" \
-H "Content-Type: application/json" \
-d '{
"user_code": "abcd-efgh"
}'Try it
live requestPOST
https://api.identrahq.com/v1/os/login/approve