Skip to main content
POST
/
templates
/
:id
/
publish
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

await resend.templates.publish('34a080c9-b17d-4187-ad80-5af20266e535');
{
  "id": "34a080c9-b17d-4187-ad80-5af20266e535",
  "object": "template"
}
Templates API is currently in private beta and only available to a limited number of users.

Path Parameters

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

const resend = new Resend('re_xxxxxxxxx');

await resend.templates.publish('34a080c9-b17d-4187-ad80-5af20266e535');
{
  "id": "34a080c9-b17d-4187-ad80-5af20266e535",
  "object": "template"
}
I