Email Templates

Create reusable email templates with Jinja2 personalization variables.

Available template variables:

{{first_name}} {{last_name}} {{full_name}} {{company}} {{industry}} {{job_title}} {{country}} {{sender_name}} {{unsubscribe_link}} {{tracking_pixel}}
GET/email-templates

List all email templates.

POST/email-templates

Create a new template.

{
  "name": "Cold Outreach v2",
  "subject": "Quick question, {{first_name}}",
  "htmlBody": "<p>Hi {{first_name}},</p><p>I noticed {{company}} is growing fast...</p>"
}
GET/email-templates/:id

Get template details including full HTML body.

PUT/email-templates/:id

Update a template's name, subject, or HTML body.

POST/email-templates/preview

Render a template with sample data (no DB write). Used for live preview.