---
title: "Get Document Download Url"
method: GET
path: "/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}/download"
tags: ["Knowledge Bases", "Knowledge Bases"]
---

# Get Document Download Url

`GET /api/v1/knowledge-bases/{kb_id}/documents/{doc_id}/download`

Generate a presigned URL for downloading the original document.

## Path parameters

- `kb_id` string, uuid, required
- `doc_id` string, uuid, required

## Response `200`

Successful Response

- DocumentDownloadResponse — Response containing a presigned URL for document download.
  - `download_url` string, required
  - `filename` string, required
  - `expires_in_seconds` integer

## Other responses

- `422` — Validation Error

## Changes

> 29 revisions in range; 1 not diffed.

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/knowledge-bases/:kb_id/documents/:doc_id/download/get.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getanana/apis/cleon-api/revisions/5e355cddc083?raw)
