How Versioning Works
Each template can have multiple versions:Saving vs. Publishing
This is the most important thing to understand about versions: saving a template does not change what your application sends.
So after editing a template there are always two steps: save, then publish. If you add a button, save, and then trigger an email from your application, the email still comes from the previously published version — the new button is missing until you publish the version that contains it.
The template detail page tells you which state you are looking at: the header reads “This version is currently Active in production” or “This version is not active in production”.
Templates created or updated through the Template API behave differently: an API update publishes the new version immediately.
Viewing Versions
On the template detail page:- Open a template
- Click See versions to open the Version History panel
- View all versions with their status and creation dates
Creating a New Version
You don’t create versions by hand — every time you click Save in the editor, Lettr snapshots the template as a new version:- The current template content (HTML and JSON) is copied to the new version
- The version number auto-increments
- The merge tags used in the content are detected and stored with the version
- The new version is inactive until you publish it
Publishing a Version
1
Open the Template
Navigate to the template’s detail page.
2
Open Version History
Click See versions.
3
Publish
Open the menu (⋯) on the version you want to go live and choose Publish. In the Publish Version dialog, leave the date empty to publish immediately, or pick a date and time to schedule it.
Active vs Inactive Versions
Active Version
The active version is used when sending emails:Using a Specific Version
Override the active version by specifying a version number:When no version is specified, Lettr always uses the active version. Use specific versions for testing or when you need to send an older version.
Scheduled Publishing
Schedule a version to become active at a future date:- Click See versions and choose Publish on the version
- Pick a date and time in the Publish Version dialog
- The version will automatically activate at that time
- Plan template updates ahead of time
- Coordinate template changes with marketing campaigns
- Deploy changes during low-traffic periods
Merge Tags (Template Variables)
Each version can define its required merge tags (template variables):Editor Type
Templates can be created with different editor types:
The editor type is stored per version, allowing you to switch between visual and code editing across versions.
Reverting to a Previous Version
To restore an older version:- Open the template and click See versions
- Find the version you want to restore
- Open its menu and choose Publish to make it the active version
Deleting Versions
You can delete inactive versions to clean up old iterations:- Open the template and click See versions
- Find the version to delete
- Open its menu and choose Delete
The delete option is not offered for the active version. Publish a different version first if you need to remove it.
Version Workflow
A typical versioning workflow:template_version — see Using a Specific Version.
Best Practices
- Version before major changes: Create a version before redesigning a template
- Use scheduled publishing: Schedule major changes for optimal timing
- Keep a working version active: Always have a tested, stable version active
- Document changes: Use version numbers to track what changed between versions
- Clean up old versions: Delete versions you no longer need to keep the list manageable
Version Comparison
Compare versions by:- Opening a version’s preview
- Opening another version’s preview in a new tab
- Comparing the rendered output side-by-side
API Usage
When using templates via API, version behavior follows these rules:Related Topics
Templates Introduction
Get started with email templates
Template Language
Merge tags and dynamic content
Projects & Folders
Organize templates in projects
Template Editor
Design templates visually