Download a document file
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
Download a document file
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A unique integer value identifying this Document.
Query Parameters
Which file version to serve. Defaults to 'original'. Falls back to 'original' if the requested purpose has no associated file.
Available options:
original, rendered_pdf, transcript Response
Binary file content or sanitized markdown text