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
- 200
- 401
- 404
The file content
Response Headers
original or extracted_text, as in FileEntry.download_kind.
Missing or invalid API key
Response Headers
Version of the gaius-api-contracts release the backend runs (legalgpt-contracts), sent on every response. Clients compare it with the @legalgpt/contracts version they were built with; both packages share one version per contract.
Prevents storage of sensitive authenticated chat data.
Language selected for outgoing generic tool-status labels and known HTTP/timeline error text. HTTP reason-phrase titles remain language-neutral.
Resource does not exist or is not visible to the caller
Response Headers
Version of the gaius-api-contracts release the backend runs (legalgpt-contracts), sent on every response. Clients compare it with the @legalgpt/contracts version they were built with; both packages share one version per contract.
Prevents storage of sensitive authenticated chat data.
Language selected for outgoing generic tool-status labels and known HTTP/timeline error text. HTTP reason-phrase titles remain language-neutral.