Create dynamic API Gateway with HTTP Router and workflow orchestration
Ready for 3.0What this workflow does
This workflow has 19 nodes and runs when an HTTP GET request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- GET (Edit Fields (Set)): sets or maps fields
- POST (Edit Fields (Set)): sets or maps fields
- DELETE (Edit Fields (Set)): sets or maps fields
- PATCH (Edit Fields (Set)): sets or maps fields
- PUT (Edit Fields (Set)): sets or maps fields
- HEAD (Edit Fields (Set)): sets or maps fields
- Aggregate Method Branches (Edit Fields (Set)): sets or maps fields
- Query param exists? (If): checks a condition and branches into true / false
- Routes Config (Edit Fields (Set)): sets or maps fields
- [Error] Required query param missing (Respond to Webhook): sends the response back to the webhook caller
…plus 8 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 (6)
- Edit Fields (Set)
n8n-nodes-base.set - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code
From the author
Overview This workflow provides a universal webhook endpoint that dynamically routes incoming requests to different subflows. It allows you to manage multiple API-like endpoints from a single entry point, while ensuring proper error handling and consistent…