Get File
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Extend’s ID for the file. It will always start with "file_". This ID is returned when creating a new File, or the value on the fileId field in a WorkflowRun.
Example: "file_Xj8mK2pL9nR4vT7qY5wZ"
Headers
API version to use for the request. If you do not specify a version, you will either receive a 400 Bad Request or be set to a previous legacy version. See API Versioning for more details.
The workspace ID to target. Required when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See Authentication for details on API key scopes.
Query parameters
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 .doc/.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.
Only available for files with a type of DOCX.

