Files API

Download

View as Markdown


Get file content

/v1/files/{file_id}/content

Download the contents of a file as a stream of raw bytes. The response `Content-Type` is `application/octet-stream`. Use this for the binary payload; use `GET /v1/files/{file_id}` for metadata only.

Path Parameters

file_idstring

The file's `id` to download.

Query Parameters

format"original" | "text"

Format of the downloaded content.

Exampletext

text

No parameters.
Exampletext

text

No response.

Last updated:April 27, 2026