A signed file (the signature is the auth; no API key)
const url = 'http://localhost:8300/files/example';const options = {method: 'GET', headers: {Range: 'bytes=0-1048575'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8300/files/example \ --header 'Range: bytes=0-1048575'Only reachable through a url the API returned. Served with Content-Security-Policy: sandbox and X-Content-Type-Options: nosniff, the object’s stored Content-Type (image/png, video/mp4, …), its Content-Length and ETag, and Accept-Ranges: bytes. A Range: bytes=<a>-<b> / <a>- / -<n> header (one range; a multi-range header is answered as if absent, 200) gets 206 with Content-Range: bytes <a>-<b>/<size> and just those bytes, streamed from the object store’s own range read, so a <video> can seek; a range that starts past the end is 416 with Content-Range: bytes */<size>. HEAD answers the same headers without a body. Kong passes Range through and buffers nothing.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Storage-relative path (may contain slashes)
Query Parameters
Section titled “Query Parameters”Expiry, unix seconds (missing = 403, not 422)
HMAC signature of path and exp (missing = 403, not 422)
Header Parameters
Section titled “Header Parameters”One byte range (RFC 9110); absent = the whole file
Responses
Section titled “Responses”The file
Headers
Section titled “Headers”The requested range of the file
Headers
Section titled “Headers”The gateway (Kong/nginx) refuses a path that climbs above the root (.. segments) before the API sees it
Bad or missing signature, expired link, a path that escapes the store, or no such file (never 404)
object
Example generated
{ "detail": "example"}The range starts past the end of the file (Content-Range: bytes */<size>)
object
Example generated
{ "detail": "example"}