v1

latestOpenAPI 3.1.02026-07-263580186.3 KB
Files

Download a document file

Download a document file. Returns the original file by default. Use the purpose parameter to request a specific version (e.g. rendered_pdf for frontend viewers).

get/api/v3/files/{id}/download

Path parameters

idinteger required

A unique integer value identifying this Document.

Query parameters

purpose'original' | 'rendered_pdf' | 'transcript'

Which file version to serve. Defaults to 'original'. Falls back to 'original' if the requested purpose has no associated file.

Response

Binary file content or sanitized markdown text