Files
Download a document file
Changed onDownload 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
Request
- Base URLhttps://api.lighton.ai
- URLhttps://api.lighton.ai/api/v3/files/{id}/download
- AuthHTTP bearer
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
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info