Docs
Templates

Retrieve Template

Get a template by ID or alias.

GET/templates/{template_id}

Path Parameters

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

const client = new Resend('pw_xxxxxxxxx');

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

No key yet? Create one in the dashboard.