Skip to content
Sign in Create account

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

  • id string path required

Request body

application/json object

  • encrypted_blob string required

    Base64-encoded AES-GCM ciphertext

Generated sample

{
  "encrypted_blob": "string"
}

Responses

200 Encrypted blob stored.

application/json object

  • message string required
    Value: "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

  • 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.

422 Validation error.

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 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

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