Files

Download a document file

Changed on

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

Request

  • Base URL
    https://api.lighton.ai
  • URL
    https://api.lighton.ai/api/v3/files/{id}/download
  • Auth
    HTTP 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/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status