Templates

Templates keep email content in Sendibl instead of your codebase — update copy without a deploy, and reuse one design across apps.

Create a template

Dashboard → Templates → New. A template has a name, subject, HTML body, and optional plain-text body. Use {{variable}} placeholders anywhere in the subject or bodies:

Subject:  Welcome, {{first_name}}!
HTML:     <h1>Hi {{first_name}}</h1><p>Your workspace {{workspace}} is ready.</p>

Send with a template

Reference the template by id and pass the variable values in template_data:

POST /emails
{
  "from": "Acme <hello@acme.com>",
  "to": ["ada@example.com"],
  "template_id": "tpl_...",
  "template_data": {"first_name": "Ada", "workspace": "Acme Inc"}
}
If the request also includes subject, html, or text, those override the template's version of that field — useful for one-off subject tweaks.

Editing

Edits take effect for all future sends immediately. Already-sent emails keep the rendered content they went out with.

Every edit saves the previous content as a numbered version — the editor shows the full history with a Restore button. Restoring snapshots the current state first, so you can always undo a restore.