Build a full REST-API with n8n webhooks
Ready for 3.0What this workflow does
This workflow has 43 nodes and runs when an HTTP GET request hits its webhook URL (plus 3 other triggers). It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 3 other triggers).
- -> GET (Edit Fields (Set)): sets 1 field: method
- -> POST (Edit Fields (Set)): sets 1 field: method
- -> PUT (Edit Fields (Set)): sets 1 field: method
- -> DELETE (Edit Fields (Set)): sets 1 field: method
- regular Set node (Edit Fields (Set)): sets 1 field: test
- Named node (Edit Fields (Set)): sets 1 field: test
- 50:50 randomizer (If): checks a condition and branches into true / false
- _REQUEST (Edit Fields (Set)): sets or maps fields
- Merge: merges the data from its input branches
- non-passthrough node (Execute Sub-workflow): calls another n8n workflow
…plus 21 more steps. 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 (10)
- Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - No Operation, do nothing
n8n-nodes-base.noOp - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - Manual Trigger
n8n-nodes-base.manualTrigger - If
n8n-nodes-base.if
From the author
What is it? A clean, extensible REST-style API routing template for n8n webhooks with up to 3 path levels. How does it work? 1. Serves API routes via Webhooks with path variables 2. Normalizes incoming requests into "global" REQUEST and CFG nodes 3. Flexible…