Get File

Fetch a file by its ID to obtain additional details and the raw file content.

Path parameters

idstringRequired

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

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

x-extend-api-versionenumOptional

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.

Allowed values:

Query parameters

rawTextbooleanOptionalDefaults to 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.

markdownbooleanOptionalDefaults to 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.

htmlbooleanOptionalDefaults to 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.

Only available for files with a type of DOCX.

Response

Successfully retrieved file

successboolean
fileobject

Errors