---
title: "Download Document File"
method: GET
path: "/documents/{document_id}/file"
tags: ["Documents"]
---

# Download Document File

`GET /documents/{document_id}/file`

Download the actual file content for a document.
This endpoint is used for local storage when file:// URLs cannot be accessed by browsers.

Args:
    document_id: External ID of the document
    auth: Authentication context

Returns:
    StreamingResponse with the file content

## Path parameters

- `document_id` string, required

## Headers

- `authorization` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/9ade02dd7b1d/schema)
