Skip to main content

Download a file

GET 

/api/v2/files/:file_id/content

Returns the file as an attachment with its media type. Stored originals (DOCX, PDF and other files the agent created, uploaded DOCX or XML) and text files come back unchanged (X-Gaius-Download-Kind: original). Files whose original is not kept (uploaded PDFs, scans, recordings) come back as a DOCX of their recognized text (extracted_text).

Request​

Responses​

The file content

Response Headers
    X-Gaius-Download-Kind

    original or extracted_text, as in FileEntry.download_kind.