---
title: "Download a file"
method: GET
path: "/public/files/{id}/download"
tags: ["Files"]
---

# Download a file

`GET /public/files/{id}/download`

## Request

- Base URL: `https://api.johnsessentials.com/api/v1`
- URL: `https://api.johnsessentials.com/api/v1/public/files/{id}/download`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Query parameters

- `disposition` 'inline' | 'attachment'

## Response `200`

Raw file bytes.

## Other responses

- `404`: Resource not found.

---

[API](https://skmtc.dev/johnsessentials/apis/john-s-essentials-api.md) · [All operations](https://skmtc.dev/johnsessentials/apis/john-s-essentials-api/llms.txt) · [OpenAPI document](https://skmtc.dev/johnsessentials/apis/john-s-essentials-api/revisions/56586ff78e6d?raw)
