Docs
Templates

Duplicate Template

Copy a template as a new draft.

POST/templates/{template_id}/duplicate

Path Parameters

template_idstringrequired
Template ID or alias.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.templates.duplicate('{template_id}');
Try itPOST/templates/%7Btemplate_id%7D/duplicate

No key yet? Create one in the dashboard.