> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/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.

### Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the source template to clone.
</ParamField>

### Body Parameters

<ParamField body="name" type="string">
  Optional new name for the cloned template. Defaults to `"{original_name} (Copy)"`.
</ParamField>

### Response

<ResponseField name="data" type="object">
  <ResponseField name="id" type="string">The newly created template ID.</ResponseField>
  <ResponseField name="name" type="string">The name of the duplicated template.</ResponseField>
  <ResponseField name="subject" type="string">The subject line cloned from the source.</ResponseField>
  <ResponseField name="status" type="string">Initial status (`draft`).</ResponseField>
</ResponseField>

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

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


## Related topics

- [Manage Broadcasts](/broadcasts/manage-broadcasts.md)
- [Idempotency Keys](/sending/idempotency-keys.md)
- [Create Template](/templates/create-template.md)
- [Delete Template](/api/templates/delete-template.md)
