Path

id
string

The ID of the File to fetch. This is the ID returned when creating a new File or the value on fileId of a WorkflowRun object.

Query Parameters

You can add additional parameters to the request to modify the file contents returned. Currently only rawText is supported.

rawText
boolean

If set to true, the raw text content of the file will be included in the response. This is useful for indexing text-based files like PDFs, Word Documents, etc.

markdown
boolean

If set to true, the markdown content of the file will be included in the response. This is useful for indexing very clean content into RAG pipelines for files like PDFs, Word Documents, etc.

*Only available for files with a type of PDF, IMG.

*or DOCX files that were auto-converted to PDFs.

html
boolean

If set to true, the html content of the file will be included in the response. This is useful for indexing html content into RAG pipelines for files like PDFs, Word Documents, etc.

*Only available for files with a type of DOCX.

Response

success
boolean

A true or false value for whether the file was fetched successfully or not.

file
File

A File object representing the fetched file. See the File object for more details.