Files

Download a document file

GET
/api/v1/files/{id}/download

Download a document file from object storage.

Authorization

bearerAuth
AuthorizationBearer <token>

Console session token (Authorization: Bearer <session>) or product API key (Authorization: Bearer <api-key> or x-api-key). Session tokens are validated via Better Auth get-session; API keys against the shared database.

In: header

Path Parameters

id*Id

A unique integer value identifying this Document.

Query Parameters

purpose?|
Default"original"

Header Parameters

authorization?string|null
x-api-key?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/files/0/download"
null