Elegovate Docs
API v1

Templates

HTML templates, dynamic variables, and email best practices.

Templates

Templates define the subject, HTML body, and optionally plain text for each send.

Variables

Use the {{ variable_name }} syntax in subject and body. When sending, each variable is replaced with the matching value from the data object in the API request.

{
	"template": "invoice",
	"to": "customer@example.com",
	"channel": "email",
	"data": {
		"name": "Luis",
		"amount": "RD$ 1,250.00",
		"link": "https://example.com/invoice/123"
	}
}

No need to start from scratch or hire a designer. The Gallery has dozens of professional email templates—welcome emails, password resets, invoices, ops alerts—designed with AI assistance. Pick the closest match, preview it, and clone it into your project with one click to make it yours.

Panel editor

In Templates you can:

  • Design HTML with the visual editor (bold, links, CTA buttons).
  • Insert variables as chips protected from accidental formatting.
  • Preview the result before saving.

Best practices

  • Keep variable names lowercase with underscores (verification_code).
  • Always use a clear subject and a readable plain-text version when possible.
  • Test with real addresses in a staging project before production.

Template slug

The template field in the API is the slug defined when creating the template (for example contact-form, welcome).

On this page