---
title: "Download Document"
method: GET
path: "/datasets/{dataset_id}/documents/{document_id}/download"
tags: ["Documents"]
---

# Download Document

`GET /datasets/{dataset_id}/documents/{document_id}/download`

Returns a signed URL for downloading a document's original uploaded file.

## Path parameters

- `dataset_id` string, uuid, required
- `document_id` string, uuid, required

## Response `200`

Download URL generated successfully.

- object
  - `url` string — Signed URL to download the original uploaded file.

## Other responses

- `403` — - `forbidden` : You do not have permission to access this document. - `forbidden` : Knowledge base API access is not enabled. - `forbidden` : Sorry, you have reached the knowledge base request rate limit of your subscription.
- `404` — `not_found` : Document not found. Also returned as "Uploaded file not found." when the stored file is missing, and "Document does not have an uploaded file to download." for non-file documents.

---

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