Tearleads

GET/blobs/{blobId}/bytes

Get committed blob bytes

Operation blobs.bytes.get

Description

Streams a committed blob's encrypted bytes, with its byte length and SHA-256 digest in response headers so the client can verify them. Requires read access through at least one active attachment binding's document.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
blobIdpathstringrequired
  • UUID

Responses

200 OK

application/octet-streambytes

  • raw bytes

Response headers

NameTypeDetails
x-tearleads-blob-byte-lengthstringrequired
  • at most 16 characters
  • decimal digits
x-tearleads-blob-idstringrequired
  • not empty
x-tearleads-blob-sha256stringrequired
  • not empty
content-lengthstringoptional

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonErrorResponse

409Conflict

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse

Additional rules

The server also enforces these rules, which the schema above cannot express.

  • Blob byte length headers decode to JavaScript safe integers.