---
title: "Download a file"
method: GET
path: "/files/{id}/content"
---

# Download a file

`GET /files/{id}/content`

## Request

- Base URL: `https://marqpdf.com/v1`
- URL: `https://marqpdf.com/v1/files/{id}/content`
- Auth: HTTP bearer

With the API key, or with no key through a file's signed `download_url` (valid for an hour).

## Response `200`

The file's bytes

## Other responses

- `401`: Missing or invalid API key
- `404`: Unknown file or operation
- `410`: File expired (kept 24 hours)

---

[API](https://skmtc.dev/marqpdf/apis/marqpdf-api.md) · [All operations](https://skmtc.dev/marqpdf/apis/marqpdf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marqpdf/apis/marqpdf-api/revisions/9f614f17df46?raw)
