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_labelstringLength: at most 128 characterspublic_key_pemstring requiredLength: 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
- ApiKeyUnauthorized
- object
messagestring required
403 The token lacks write ability or the caller lacks organization settings permission.
application/json object
errorobject requiredtypestring requiredValue:"permission_denied"codestring requiredOne of:"missing_ability","org_settings_write_required"messagestring required
422 The request failed validation.
application/json object
Any keys are accepted.
429 The route throttle limit was exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string