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

# Download a document file

`GET /api/v3/files/{id}/download`

Download a document file. Returns the original file by default. Use the purpose parameter to request a specific version (e.g. rendered_pdf for frontend viewers).

## Path parameters

- `id` integer, required

## Query parameters

- `purpose` 'original' | 'rendered_pdf' | 'transcript'

## Response `200`

Binary file content or sanitized markdown text

## Other responses

- `401` — Authentication credentials were not provided
- `404` — File not found or not accessible
- `422` — Request body is valid JSON but one or more fields failed validation

---

[API](https://skmtc.net/lighton/apis/lighton-api.md) · [All operations](https://skmtc.net/lighton/apis/lighton-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lighton/lighton-api/versions/86c57e94ef15/schema)
