How Versioning Works
Drafts
- Changes are auto-saved as a draft
- Drafts are not available via API
- Only one draft exists at a time (your current work)
- Draft shows as “Current Draft” in version history
Published Versions
- Created when you click Publish
- Each publish creates a new version number
- Published versions are available via API
- All versions are preserved indefinitely
Version History Panel
Access version history from the template editor:- Click the Version History button (clock icon)
- View all versions with timestamps
- Click any version to preview it
Version List
| Column | Description |
|---|---|
| Version | Version number (v1, v2, v3…) |
| Published | When the version was published |
| Published By | Team member who published |
| Status | Current (active) or Previous |
Viewing Previous Versions
Click on any version to see:- HTML content at that version
- CSS content at that version
- Test data at that version
- Preview of the rendered PDF
Viewing a previous version doesn’t affect your current draft or the active published version.
Restoring a Version
To restore a previous version:API and Versions
Default Behavior
API requests use the latest published version of a template:Current Draft
Drafts are never used by the API. Always publish your template to make changes available.Best Practices
Meaningful Publishes
Don’t publish after every small change. Instead:- Make a series of related changes
- Test thoroughly with different data
- Publish when the template is ready for use
Document Changes
While Fileloom doesn’t have built-in change notes, consider:- Adding a comment in your HTML:
<!-- v3: Added tax calculation --> - Maintaining a changelog in your project documentation
Test Before Publishing
Always test your template with various data scenarios:- Empty arrays
- Long text that might wrap
- Missing optional fields
- Edge cases (zero amounts, special characters)
Version Limits
There are no limits on the number of versions. All published versions are retained for the lifetime of the template.Deleting Templates
When you delete a template:- All versions are permanently deleted
- The template ID becomes invalid
- API requests using that template will fail
Exporting Templates
To back up a template:- Open the template in the editor
- Copy the HTML content
- Copy the CSS content
- Save both locally or in version control

