Operation
Confirm device adoption
POST
/devices/pairing/{pairingId}/confirmThe device confirms adoption and receives its id + one-time secret (device-code auth).
Path parameters
pairingIdstringRequired
Body
deviceCode*string
Returns
Pairing confirmed
Errors
- 400
- Bad Request - Invalid input
- 401
- Unauthorized - Authentication required
- 403
- Forbidden - Insufficient permissions
- 404
- Not Found - Resource not found
- 500
- Internal Server Error
Every error names its code and links to it. All error codes
curl -X POST "https://api.ticketlayer.com/v1/devices/pairing/{pairingId}/confirm" \ -H "Content-Type: application/json" \ -d '{ "deviceCode": "string" }'Response 200
{
"deviceId": "string",
"deviceSecret": "string"
}