> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Duplicate Template

> Clone an existing template to create a new draft copy.

Create an exact replica of an existing email template under a new ID and optional new name via the Mailofly API.

### Path Parameters

**id** `string` *required*

The unique identifier of the source template to clone.

### Body Parameters

**name** `string`

Optional new name for the cloned template. Defaults to `"{original_name} (Copy)"`.

### Response

**data** `object`

**id** `string`

The newly created template ID.

**name** `string`

The name of the duplicated template.

**subject** `string`

The subject line cloned from the source.

**status** `string`

Initial status (`draft`).

```bash cURL theme={null}
curl -X POST https://api.mailofly.com/templates/tmpl_123/duplicate \
  -H "Authorization: Bearer mf_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Holiday Campaign 2026"
  }'
```

```json 201 Created theme={null}
{
  "data": {
    "id": "tmpl_456",
    "name": "Holiday Campaign 2026",
    "subject": "Special Offer Inside",
    "status": "draft"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.