Docs
Templates

Publish Template

Make the template available for sending.

POST/templates/{template_id}/publish

Path Parameters

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

const client = new Resend('pw_xxxxxxxxx');

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

No key yet? Create one in the dashboard.