---
title: "Adds templates to an envelope."
method: POST
path: "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/templates"
tags: ["EnvelopeTemplates"]
---

# Adds templates to an envelope.

`POST /v2.1/accounts/{accountId}/envelopes/{envelopeId}/templates`

Adds templates to the specified envelope.

## Path parameters

- `accountId` string, required
- `envelopeId` string, required

## Query parameters

- `preserve_template_recipient` string

## Request body

- DocumentTemplateList
  - `documentTemplates` DocumentTemplate[]
    - `documentEndPage` string
    - `documentId` string — Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.
    - `documentStartPage` string
    - `errorDetails` ErrorDetails — This object describes errors that occur. It is only valid for responses and ignored in requests.
      - `errorCode` string — The code associated with the error condition.
      - `message` string — A brief message describing the error condition.
    - `templateId` string — The unique identifier of the template. If this is not provided, Docusign generates an error and the call fails.

## Response `201`

Successful response.

## Other responses

- `400` — Error encountered.

---

[API](https://skmtc.net/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.net/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docusign/docusign-esignature-rest-api/revisions/77f1998c313d/schema)
