The headers `GET` would answer for a signed file, without a body
HEAD
/files/{path}
const url = 'http://localhost:8300/files/example';const options = {method: 'HEAD', 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 HEAD \ --url http://localhost:8300/files/example \ --header 'Range: bytes=0-1048575'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”path
required
string
Storage-relative path (may contain slashes)
Query Parameters
Section titled “Query Parameters”exp
integer
Expiry, unix seconds (missing = 403, not 422)
sig
string
HMAC signature of path and exp (missing = 403, not 422)
Header Parameters
Section titled “Header Parameters”Range
string
One byte range (RFC 9110); absent = the whole file
Responses
Section titled “Responses”The file’s headers
Headers
Section titled “Headers”Content-Security-Policy
string
X-Content-Type-Options
string
Accept-Ranges
string
The headers of the requested range
Headers
Section titled “Headers”Content-Range
string
Accept-Ranges
string
The gateway (Kong/nginx) refuses a path that climbs above the root (.. segments) before the API sees it
Media typetext/html
string
Bad or missing signature, expired link, a path that escapes the store, or no such file (never 404)
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}The range starts past the end of the file (Content-Range: bytes */<size>)
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}