MailerCloneTemplate¶
POST mailer/template/clone
Copies a template, usually as the starting point for another language.
The copy is created disabled. A clone is almost always edited before use, and an enabled duplicate bound to the same trigger would send the customer two emails for one event.
Access Control¶
Allowed role: admin, within the brand of the caller.
Request¶
POST https://{broker_domain}/mailer/template/clone
{
"id": 4,
"language": "UK",
"name": "Deposit confirmed (UK)"
}
{
"command": "MailerCloneTemplate",
"extID": "1",
"data": {
"id": 4,
"language": "UK",
"name": "Deposit confirmed (UK)"
}
}
const res = await platform.MailerCloneTemplate({
id: 4,
language: "UK",
name: "Deposit confirmed (UK)"
});
Request Data¶
| Field | Type | Required | Description |
|---|---|---|---|
id |
int | Yes | Template to copy |
name |
string | No | Name for the copy; defaults to the original with a suffix |
language |
string | No | Language of the copy |
Response Data¶
{
"id": 9,
"name": "Deposit confirmed (UK)",
"subject": "{{name}}, your deposit is confirmed",
"language": "UK",
"kind": "TRANSACTIONAL",
"triggerId": 2,
"status": "DISABLED",
"clonedFrom": 4,
"createdAt": "2026-08-24 14:33:12"
}
Errors¶
| Code | Error | Description |
|---|---|---|
404 |
NOT_FOUND |
Template not found in the brand |