---
title: "Create document from template"
method: POST
path: "/template/{template_id}/copy"
---

# Create document from template

`POST /template/{template_id}/copy`

## Request

- Base URL: `https://api.signnow.com`
- URL: `https://api.signnow.com/template/{template_id}/copy`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/signnow/apis/signnow-api/docs/template/:template_id/copy/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows API users to create a new document from a template. If a name is not supplied, the document takes the name of the template.

The new document is a signable copy: the template stays untouched as the master version. The response returns the new document's `id`. The copy has its own document, field, and role IDs, all different from the template's, so read the current roles and fields from [Get document](/docs/document/operations/get-document) for the new document rather than reusing the template's. For the full flow, from preparing the document to sending the copy for signature, see [Documents, doc groups, and templates](/docs/entities). To let recipients sign the copy inside your own site or app, see [Embedded signing](/docs/guides-embedded-signing). To copy the template itself instead of generating a signable document, use [Duplicate template](/docs/template/operations/post-v2-templates-template-id-copy).

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=WjohB0P5S8M)

</details>

## Request body

- object
  - `document_name` string: Name of the new document.

## Response `200`

The document was created from the template.

- object
  - `id` string: ID of the created document.
  - `name` string: Name of the created document.

## Other responses

- `400`: * Wrong, expired, or missing token. * The template doesn't exist. * The template belongs to another user.

---

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