How Versioning Works
Each template can have multiple versions:Viewing Versions
In the template editor:- Open a template
- Click the Versions tab in the sidebar
- View all versions with their status and creation dates
| Field | Description |
|---|---|
| Version number | Sequential version identifier |
| Status | Active, Inactive, or Scheduled |
| Created | When this version was created |
| Publish date | When the version will become active (if scheduled) |
Creating a New Version
Create a version to snapshot your current template state:
When you create a version:
- The current template content (HTML and JSON) is copied to the new version
- The version number auto-increments
- You can optionally activate it immediately or 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:- Create or edit a version
- Set the Publish At date and time
- 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):| Field | Description |
|---|---|
key | Variable name as used in the template (e.g., {{customer_name}}) |
required | Whether this variable must be provided when sending |
Editor Type
Templates can be created with different editor types:| Editor Type | Description |
|---|---|
topol | Created with the visual drag-and-drop Topol editor |
custom_html | Created with custom HTML code |
Reverting to a Previous Version
To restore an older version:- Open the template’s Versions tab
- Find the version you want to restore
- Click Activate to make it the active version
Deleting Versions
You can delete inactive versions to clean up old iterations:- Open the template’s Versions tab
- Find the version to delete
- Click Delete
The delete option is disabled for the active version. Activate a different version first if you need to remove it.
Version Workflow
A typical versioning workflow: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:| Scenario | Version Used |
|---|---|
| No version specified | Active version |
template_version: 2 | Version 2 (if exists) |
| Version doesn’t exist | Error returned |
| All versions inactive | Error returned (generic “template not found”) |
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