Route API requests via webhook with retries and backup endpoints
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Extract Request Configuration (Edit Fields (Set)): sets or maps fields
- Execute Primary API Request (HTTP Request): calls an HTTP API
- Check Primary API Success (If): checks a condition and branches into true / false
- Return Primary API Response (Respond to Webhook): sends the response back to the webhook caller
- Wait: waits 5 seconds
- Retry Primary API Request (HTTP Request): calls an HTTP API
- Check Retry API Success (If): checks a condition and branches into true / false
- Return Retry API Response (Respond to Webhook): sends the response back to the webhook caller
- Execute Backup API Request (HTTP Request): calls an HTTP API
- Check Backup API Success (If): checks a condition and branches into true / false
…plus 3 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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Wait
n8n-nodes-base.wait
From the author
Quick Overview This workflow exposes a webhook that forwards a request to a primary API, retries once after a short delay if it fails, and then fails over to a backup API, returning a structured JSON success or error response to the caller. How it works 1.…