Sendexa LogoDocs

Email Templates

Manage reusable email templates, support dynamic variables, and maintain a consistent brand identity.

Visual Editor

Create templates using our drag-and-drop builder without writing code

Raw HTML

Upload or write raw HTML for full control over your email design

Variable Substitution

Use Handlebars-like syntax for dynamic personalization

Version Control

Keep track of template changes and easily rollback if needed

Using Templates via API

Template Variables Syntax

Our templating engine uses double curly braces {{variableName}}. When sending an email, pass the matching keys in the variables object.

HTML
<!-- Template Content -->
<h1>Welcome, {{firstName}}!</h1>
<p>Your subscription to the {{planName}} plan is confirmed.</p>
<a href="{{loginUrl}}">Log in to your account</a>

Sending with a Template ID

Instead of passing HTML content directly, provide the templateId and the required variables.

JSON
{
"from": "[email protected]",
"subject": "Welcome Aboard!",
"templateId": "tpl_abc123xyz",
"variables": {
"firstName": "Alex",
"planName": "Pro",
"loginUrl": "https://yourdomain.com/login"
}
}

Template API Management (Coming Soon)