Files
Rasterize a document page to a base64 PNG
Return a base64-encoded PNG of one page from a stored document.
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.
page*Page
1-indexed page number to rasterize.
Range
1 <= valueQuery Parameters
dpi?Dpi
Rasterization DPI (default 96).
Range
36 <= value <= 300Default
96Header Parameters
x-api-key?string|null
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/files/0/pages/1/image"{ "b64_content": "string"}