Initiate device pairing
POST /api/devices/pair
Creates a pending backup-device pairing for the authenticated account. device_name is optional and limited to 100 characters; the response contains a six-digit code and a 300-second expiry. A sixth active device is rejected with 422.
Authenticate with a portal session token.
Request body (optional)
application/json object
device_namestringLength: at most 100 characters
Generated sample
{
"device_name": "string"
}Responses
200 Pairing code created.
application/json object
device_idinteger requiredexpires_in_secondsinteger requiredValue:300instructionsstring requiredpairing_codestring requiredPattern:^[0-9]{6}$
Generated sample
{
"device_id": 0,
"expires_in_seconds": 300,
"instructions": "string",
"pairing_code": "string"
}401 Missing or invalid bearer token.
application/json object
Any keys are accepted.
403 The caller does not meet the route requirements: accepted Terms of Service and Privacy Policy.
application/json object
Any keys are accepted.
422 Device limit reached or invalid device name.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string