Email templates
Email Templates API for Reusable Product Messages
NoticeAPI templates keep repeated product messages out of scattered string literals. Store the subject and body once, pass variables at send time, and reuse the same template from REST, SDK sends, batch jobs, broadcasts, or automations.
curl -X POST https://www.noticeapi.com/api/v1/templates \
-H "Authorization: Bearer ntc_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "Password reset",
"subject": "Reset your password, {{FIRST_NAME}}",
"html": "<p>Use this code: {{RESET_CODE}}</p>"
}'
curl -X POST https://www.noticeapi.com/api/v1/email/send \
-H "Authorization: Bearer ntc_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <[email protected]>",
"to": "[email protected]",
"templateId": "tpl_xxxxxxxx",
"variables": { "FIRST_NAME": "Sam", "RESET_CODE": "123456" }
}'Template CRUD
Create, list, update, and delete reusable templates from the API or dashboard.
Subject, HTML, and text
Templates store subject, HTML, and optional plain text, then render variables at send time.
Starter templates
New workspaces can install editable welcome, password reset, and receipt starters.
Works across send paths
Use templates in direct sends, batch sends, broadcasts, and automation steps.
How it works
From test send to production traffic.
Create the template
Store a reusable subject and body with clear merge tokens such as {{FIRST_NAME}}.
Preview and edit
Use the dashboard editor to inspect rendered HTML with sample variables.
Send by id
Pass templateId and variables to the send endpoint instead of embedding the full body.
Override when needed
Send-time subject, html, or text values can override the stored template part for one message.
Trust
Templates make product email easier to audit
Reusable templates keep receipts, resets, alerts, and lifecycle messages consistent. Unknown merge tokens stay visible instead of silently sending blank content.
Implementation links
Build with the shipped docs.
FAQ
Questions developers ask before switching email.
What happens if a variable is missing?
Unknown tokens remain visible in the rendered output so mistakes are noticeable instead of silently blank.
Can I use templates in batch sends?
Yes. Batch sends can reuse a template and pass variables per message.
Are there starter templates?
Yes. Workspaces can install editable welcome, password reset, and receipt starters.
Start free. Send production after your domain is ready.
Free includes 3,000 production emails per month, a 100/day production cap, and one verified sending domain.