Upload encrypted token-blob for backup device
POST /api/devices/{id}/token-blob
Stores the caller-provided encrypted token blob for a completed device owned by the authenticated account. The string must be 16 to 65,536 characters; the response contains a message, not the blob. Invalid input returns 422 and a missing/unowned device returns 404.
Authenticate with a portal session token.
Parameters
idstring path required
Request body
application/json object
encrypted_blobstring requiredBase64-encoded AES-GCM ciphertext
Generated sample
{
"encrypted_blob": "string"
}Responses
200 Encrypted blob stored.
application/json object
messagestring requiredValue:"Token blob stored."
Generated sample
{
"message": "Token blob stored."
}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.
404 Completed device was not found for this account.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Validation error.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string