# Duplicate a template

```http
POST https://api.signapi.lumin.example/v1/templates/{templateId}/duplicate
```

Copies a template, optionally filling some placeholders in the copy.

This endpoint is a [Sign API extension](https://docs.signapi.dev/extensions). SignatureAPI has no equivalent.

## Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `templateId` | string | Yes | The unique identifier of a template. A stored template (tpl_…) in this account and mode. Pattern `^tpl_[0-9A-Za-z]{22}$`. Sign API extension. |

## Request body

Content type `application/json`.

Body: [`Template.DuplicateInput`](https://docs.signapi.dev/schemas/Template.DuplicateInput).


## Responses

### 201

Body: [`Template.Template`](https://docs.signapi.dev/schemas/Template.Template).

### 422

The request failed validation. The [problem body](https://docs.signapi.dev/errors) lists each problem in `errors`.

### 4xx

A client error, as an `application/problem+json` body. Its `type` links to the [error page](https://docs.signapi.dev/errors) for the code.

### 5xx

A server error, as an `application/problem+json` body. Retry with backoff.
