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

# Download file content

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

Download the raw binary content of a file. The response includes an appropriate `Content-Type` header detected via libmagic and a `Content-Disposition: attachment` header with the original filename.

## Path parameters

- `file_id` string, required

## Query parameters

- `scope_id` string, required — Session / container identifier.

## Response `200`

Raw file bytes with MIME-typed content.

- unknown

## Other responses

- `401` — Unauthorized
- `404` — File not found in the session.
- `422` — Validation Error
- `503` — Files API not configured (volume_root not set).

---

[API](https://skmtc.net/zylon-ai/apis/private-gpt-api.md) · [All operations](https://skmtc.net/zylon-ai/apis/private-gpt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zylon-ai/private-gpt-api/versions/594fa71dfb90/schema)
