---
title: "Retrieve file content"
method: GET
path: "/files/{file_id}/content"
tags: ["files"]
---

# Retrieve file content

`GET /files/{file_id}/content`

Download the content of a file as JSONL.

For input files, returns the original request templates. For output files, returns the completed responses. Supports pagination via `limit` and `offset` query parameters.

## Path parameters

- `file_id` string, required

## Query parameters

- `pagination` object, required — Standard pagination parameters for admin API list endpoints. All admin endpoints use consistent offset-based pagination with: - `skip`: Number of items to skip (default: 0) - `limit`: Maximum items to return (default: 10, max: 100) The `limit` is clamped to ensure it's always between 1 and 100, preventing both zero-result queries and excessive data fetching.
  - `limit` integer, nullable — Maximum number of items to return (default: 10, max: 100)
  - `skip` integer, nullable — Number of items to skip (default: 0)
- `search` string, nullable

## Response `200`

File content as newline-delimited JSON. Check the `X-Incomplete` header to determine if more content exists.

## Other responses

- `404` — File not found or you don't have access to it.
- `500` — An unexpected error occurred. Retry the request or contact support if the issue persists.

---

[API](https://skmtc.dev/doubleword/apis/doubleword-api.md) · [All operations](https://skmtc.dev/doubleword/apis/doubleword-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doubleword/doubleword-api/revisions/6617202865d8/schema)
