Skip to content
Sign in Create account

POST devices/pair

POST /api/v1/devices/pair

Registers a device public key for receipt signing.

Authenticate with an API key or a portal session token.

Request body

application/json object

  • device_label string
    Length: at most 128 characters
  • public_key_pem string required
    Length: at most 8192 characters

Generated sample

{
  "device_label": "string",
  "public_key_pem": "string"
}

Responses

200 Successful response.

application/json object

Any keys are accepted.

401 Authentication is required or the supplied credentials are not accepted.

application/json any

One of

403 The token lacks write ability or the caller lacks organization settings permission.

application/json object

  • error object required
    • type string required
      Value: "permission_denied"
    • code string required
      One of: "missing_ability", "org_settings_write_required"
    • message string required
422 The request failed validation.

application/json object

Any keys are accepted.

429 The route throttle limit was exceeded.

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