Skip to main content
POST
/
templates
/
{id}
/
duplicate
import { Emailr } from 'emailr';

const emailr = new Emailr('em_xxxxxxxxx');

const { data, error } = await emailr.templates.duplicate(
  '34a080c9-b17d-4187-ad80-5af20266e535',
);
{
  "object": "template",
  "id": "e169aa45-1ecf-4183-9955-b1499d5701d3"
}
POST https://api.emailr.dev/templates/{id}/duplicate

Path Parameters

id | alias
string
The ID or alias of the template to duplicate.
import { Emailr } from 'emailr';

const emailr = new Emailr('em_xxxxxxxxx');

const { data, error } = await emailr.templates.duplicate(
  '34a080c9-b17d-4187-ad80-5af20266e535',
);
{
  "object": "template",
  "id": "e169aa45-1ecf-4183-9955-b1499d5701d3"
}