Value get
Download a stored blob by object and valueRef. The response body is raw bytes (not JSON). Content-Type and the suggested filename in Content-Disposition come from the filemimetype and filename you sent when this blob was uploaded (POST /v1/value), so they stay aligned with that upload — not with whatever file you may be comparing to locally.
{{host}}/v1/value?object={{object}}&valueRef={{valueRef}}- objectstringRequired
Unique name of the object in the URL.
- format:
- abc:0-9@owner
- valueRefstringRequired
Identifier returned when the blob was stored (POST).
example: Mqn0WDHP8cuLYkMIjxAqmSdz8vRkTDDhB5Ie6Sn3
- x-api-keyRequired
Your BigState API key.
*provide api key here*
See authentication headers here.
- 200Response body · object
Success. Response body is raw bytes (not JSON). `Content-Type` and `Content-Disposition` are HTTP response headers — they come from metadata stored at upload (`filemimetype` and `filename` on POST), so the download name matches that upload, not an arbitrary client label.
- Content-Typestring
Response header. MIME type recorded when the blob was uploaded (`filemimetype` on POST).
example: image/png - Content-Dispositionstring
Response header. Suggested download name (`attachment`; `filename` / `filename*`), from metadata stored at upload (`filename` on POST).
example: attachment; filename="photo.png" - bodyany
Raw file bytes in the HTTP response body.
- 401
Unauthorized.
- 403
Access denied. The caller does not have sufficient rights to perform this operation.
- 404
No blob exists for this object and valueRef.
- 400Response body · object
Bad request.
{"error": 6,"desc": "\"Object must be formatted as object"}- errornumber
Numeric error code. See the error codes reference for the full list.
- descstring
Human-readable description of the error.
Download blob by valueRef
GET returns raw bytes in the response body. Read `Content-Type` and `Content-Disposition` from the HTTP response headers.
curl 'https://api.bigstate.dev/v1/value?object=Z5H1QxoGRz5vc6VeNIwwpVC6biVkYTqXe9SGQJJ6%3Aposition%3Avalueref%40Z5H1QxoGRz5vc6VeNIwwpVC6biVkYTqXe9SGQJJ6&valueRef=Mqn0WDHP8cuLYkMIjxAqmSdz8vRkTDDhB5Ie6Sn3' \
--header 'x-api-key: YOUR_API_KEY'