New: per-domain unsubscribe pages and opt-out lists. Read how it works →

BillionSend

Email templates you can build in blocks or write in HTML

A template is reusable email content: a subject, HTML and an optional plain-text part. Build it in the dashboard or create it with the API, and fill in each contact's own values with merge fields.

What Templates does

  • Block editor or your own HTML

    Compose in the block editor, or write the HTML yourself. Switch a block template to HTML with Edit as HTML, as a copy or in place.

  • Your HTML stays as you wrote it

    A template created with html through the API opens in HTML mode and is kept exactly as written. Converting it to blocks is always your choice.

  • Merge fields with fallbacks

    Put FIRST_NAME in triple curly braces, with a fallback after a vertical bar, and each contact's first name is filled in, or the fallback when they have none. LAST_NAME and EMAIL are built in, and any other name reads the contact property of that name.

  • Aliases instead of ids

    Give a template an alias such as welcome and use it in place of the id in every template route. Aliases are unique in your team.

  • Works with resend.templates

    Create, list, read, update, delete and duplicate templates with the same calls as the Resend SDK, so scripts that manage templates keep working.

  • Every save is live

    There is no draft or publish step. What you save is what the template holds, and a copy of it is what a new campaign starts from.

Create a template with the API

In the dashboard, open Templates and choose the block editor or HTML. Through the API, one call creates it, and the alias lets you find it later.

curl -X POST https://api.billionsend.com/templates \
-H "Authorization: Bearer $BILLIONSEND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Welcome",
"subject": "Welcome to Acme",
"html": "<p>Thanks for signing up.</p>",
"alias": "welcome"
}'

Frequently asked questions

Learn more

Send your first email in five minutes.