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
| Name | In | Type | Details |
|---|---|---|---|
blobId | path | string | required
|
Responses
200 OK
application/octet-streambytes
- raw bytes
Response headers
| Name | Type | Details |
|---|---|---|
x-tearleads-blob-byte-length | string | required
|
x-tearleads-blob-id | string | required
|
x-tearleads-blob-sha256 | string | required
|
content-length | string | optional |
Other responses
| Status | Meaning | Body |
|---|---|---|
| 400 | Bad Request |
|
| 401 | Unauthorized |
|
| 403 | Forbidden |
|
| 404 | Not Found |
|
| 409 | Conflict |
|
| 500 | Internal Server Error |
|
| 503 | Service Unavailable |
|
Additional rules
The server also enforces these rules, which the schema above cannot express.
Blob byte length headers decode to JavaScript safe integers.