Get File
Fetch a file by its ID to obtain additional details and the raw file content.
Path
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.
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.
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.
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
A true or false value for whether the file was fetched successfully or not.
A File object representing the fetched file. See the File object for more details.