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.

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.