Templates / Restore workflows from GitHub to another n8n instance via the n8n API

Restore workflows from GitHub to another n8n instance via the n8n API

Ready for 3.0

by Adriaan van Niekerk ✓ · 6 views · created 2026-09-02 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 12 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set Restore Configurations (Edit Fields (Set)): sets or maps fields
  2. Check Selected Path (If): checks a condition and branches into true / false
  3. Generate Restore Item Code (Code): runs custom JavaScript code
  4. Fetch GitHub Workflow Files (HTTP Request): calls an HTTP API
  5. Download GitHub Workflow File (HTTP Request): calls an HTTP API
  6. Generate Restore File List (Code): runs custom JavaScript code
  7. Sanitize Workflow Data (Code): runs custom JavaScript code
  8. Fetch Target Workflow (HTTP Request): calls an HTTP API
  9. Check Workflow Existence (If): checks a condition and branches into true / false
  10. Update Existing Workflow (HTTP Request): calls an HTTP API

…plus 1 more step. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

Quick overview Restore one or all n8n workflows from a GitHub repository into any n8n instance — in one click. Use it for disaster recovery, migrating to a new n8n instance, bulk importing workflows, or recovering a single accidentally deleted workflow. How…

Excerpt from Adriaan van Niekerk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.