---
title: "GET /ai/v1/files/{file_id}/content"
method: GET
path: "/ai/v1/files/{file_id}/content"
tags: ["AI Gateway"]
---

# GET /ai/v1/files/{file_id}/content

`GET /ai/v1/files/{file_id}/content`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/v1/files/{file_id}/content`
- Auth: HTTP bearer

## Path parameters

- `file_id` string, required

## Response `200`

File content (JSONL for batch files), streamed

## Other responses

- `401`: Unauthorized
- `404`: No such file created by the caller

## Changes

- **2026-10-05** `2d395ffb4f03`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/v1/files/:file_id/content/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
