SpyBara
Go Premium

rest-api-reference/files/download.md 2026-10-31 23:59 UTC to 2026-11-01 23:02 UTC

No changes for this document in this history range.

2026

Files API

Download


GET /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_id (string, required) — The file's `id` to download.

Query Parameters

  • format ("original" | "text") — Format of the downloaded content.