Templates
Write it once. Send it with one call.
Save receipts, resets and invites as templates with {{variables}} and send them by id or name.
What you get
- {{variable}} and {{variable|fallback}}, HTML-escaped for safety
- Resend's template: {id, variables} shape works
- Live preview in the dashboard
- Create, read, update and delete over the API
{"from":"Acme <hi@mail.acme.com>","to":["ada@example.com"],
"template_id":"receipt",
"variables":{"first_name":"Ada","order_id":"42"}}