---
title: "Document Download"
method: GET
path: "/public/v1/documents/{id}/download"
tags: ["Documents"]
---

# Document Download

`GET /public/v1/documents/{id}/download`

## Request

- Base URL: `https://api.pandadoc.com`
- URL: `https://api.pandadoc.com/public/v1/documents/{id}/download`
- Auth: one of:
  - API key in header `Authorization`
  - OAuth 2
    - Authorization code: `https://app.pandadoc.com/oauth2/authorize`
    - Token URL: `https://api.pandadoc.com/oauth2/access_token`
- TypeScript: <https://skmtc.dev/pandadoc/apis/pandadoc-public-api/docs/public/v1/documents/:id/download/get.ts> (a function with typed inputs; its response is checked against the schema)

Download documents as a PDF.
> ❗️ Downloading completed and signed documents
>
> To download completed and signed documents, you should use the [Download Protected Document](https://developers.pandadoc.com/reference/download-protected-document) endpoint instead. See the [How to download a completed document](https://developers.pandadoc.com/docs/how-to-download-completed-document) guide for details.

## Path parameters

- `id` string, required

## Query parameters

- `watermark_color` string
- `watermark_font_size` integer
- `watermark_opacity` number, float
- `watermark_text` string
- `separate_files` boolean

## Response `200`

OK

## Other responses

- `202`: The signed document file is not ready yet (for example, a bundle overall PDF or ZIP is still being produced). Retry after the indicated number of seconds. No response body is returned.
- `400`: Bad Request
- `401`: Authentication error
- `403`: Permission error
- `404`: Not found
- `409`: Conflict
- `429`: Too Many Requests

---

[API](https://skmtc.dev/pandadoc/apis/pandadoc-public-api.md) - [All operations](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/revisions/b9a306b1a421?raw)
