Skip to main content
The client.templates resource manages Lettr-managed templates. To send a template, see Sending Emails → Send with a Template.

List Templates

API Reference

GET /templates

Get a Template

Create a Template

Provide html or json (the TOPOL.io editor format), not both:
purpose is set once and cannot be changed. Omit it and you get a transactional template, which a campaign cannot use — and purpose is not accepted by the update endpoint, so the only remedy is to copy the template in the app. If the content is going to an audience, set it now. See Transactional vs. Marketing Templates.

API Reference

POST /templates

Update & Delete

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

lettr-kit CLI

Pull and sync templates locally