---
title: "Gets PDF documents from a template."
method: GET
path: "/v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}"
tags: ["TemplateDocuments"]
---

# Gets PDF documents from a template.

`GET /v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}`

## Request

- Base URL: `https://www.docusign.net/restapi`
- URL: `https://www.docusign.net/restapi/v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}`
- Auth: none declared

This method retrieves one or more PDF documents from the template that you specify.

You can specify the ID of the document to retrieve, or pass in the value `combined` to retrieve all documents in the template as a single PDF file.

## Path parameters

- `accountId` string, required
- `documentId` string, required
- `templateId` string, required

## Query parameters

- `encrypt` string
- `file_type` string
- `show_changes` string

## Response `200`

Successful response.

## Other responses

- `400`: Error encountered.

## Changes

- **2023-08-31** (v2) `bb534e06636c`: 1 info
  - added the new optional `query` request parameter `file_type`
- **2019-07-18** (v2) `8ad1b5a40f1b`: 1 warning
  - deleted the `query` request parameter `file_type`

[Operation history](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/changes/v2.1/accounts/:accountId/templates/:templateId/documents/:documentId/get.md)

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) - [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
