Skip to content
Sign in Create account

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_name string
    Length: at most 100 characters

Generated sample

{
  "device_name": "string"
}

Responses

200 Pairing code created.

application/json object

  • device_id integer required
  • expires_in_seconds integer required
    Value: 300
  • instructions string required
  • pairing_code string required
    Pattern: ^[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

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string