Get File
File Endpoints
Get File
Fetch a file by its ID to obtain additional details and the raw file content.
Get File
Path
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.boolean
default:"false"
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 .doc/.docx files that were auto-converted to PDFs.
boolean
default:"false"
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.
boolean
default:"false"
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
boolean
A true or false value for whether the file was fetched successfully or not.
File
A File object representing the fetched file. See the File object for more details.

