Overview
Then8n_workflow_versions tool provides comprehensive version management for n8n workflows. It allows you to view version history, rollback to previous states, and manage version storage.
Requires
N8N_API_URL and N8N_API_KEY to be configured.Parameters
Operation mode. One of:
list, get, rollback, delete, prune, truncateWorkflow ID (required for list, rollback, delete, prune modes)
Version ID (required for get mode and single version delete, optional for rollback)
Maximum versions to return in list mode
Validate workflow structure before rollback
Delete all versions for workflow (delete mode only)
Keep N most recent versions (prune mode only)
REQUIRED: Must be true to truncate all versions (truncate mode only)
Modes
- list
- get
- rollback
- delete
- prune
- truncate
View version history for a workflow
Response
The operation mode that was executed
Workflow ID (for list, get, rollback, delete, prune modes)
Array of version objects (list mode)
Version details (get mode)
Whether the operation succeeded
Operation result message
Use Cases
Audit Trail
Audit Trail
Track all changes made to a workflow over time. View who made changes and when.
Safe Rollback
Safe Rollback
If a workflow update causes issues, quickly rollback to a previous working version.
Version Cleanup
Version Cleanup
Prune old versions to save storage space while keeping recent history.
Disaster Recovery
Disaster Recovery
Restore workflows to known-good states after configuration errors or bugs.
Best Practices
Version history is maintained automatically by n8n when workflows are updated.
Related Tools
- n8n_get_workflow - Retrieve current workflow state
- n8n_update_full_workflow - Update workflow (creates new version)
- n8n_autofix_workflow - Fix common errors before rollback