Path Parameters
The ID or alias of the template to publish.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.templates.publish(
'34a080c9-b17d-4187-ad80-5af20266e535',
);
{
"id": "34a080c9-b17d-4187-ad80-5af20266e535",
"object": "template"
}
Publish a template.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.templates.publish(
'34a080c9-b17d-4187-ad80-5af20266e535',
);
{
"id": "34a080c9-b17d-4187-ad80-5af20266e535",
"object": "template"
}
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.templates.publish(
'34a080c9-b17d-4187-ad80-5af20266e535',
);
{
"id": "34a080c9-b17d-4187-ad80-5af20266e535",
"object": "template"
}
Was this page helpful?