Skip to main content
The client.templates resource manages Lettr-managed templates. To send a template, pass template_slug to client.emails.send() — see Sending Emails.

List Templates

API Reference

GET /templates

Get a Template

Create a Template

Provide html or json (the TOPOL.io editor format), not both:

API Reference

POST /templates

Update & Delete

Updating a template creates a new version:

Get Merge Tags

Retrieve the variables a template expects — useful for validating data before sending:

API Reference

GET /templates//merge-tags

What’s Next

Template Language

Merge tag syntax, conditionals, loops

Sending Emails

Send a template with substitution data