Public Webhook Relay: Seamlessly Forward Incoming Webhooks to Your Local n8n
detail.loadingPreview
Effortlessly capture public webhook requests from webhook.site and forward them directly to your local n8n workflows. This tool acts as a bridge, ensuring no incoming data is missed and automating your local integrations.
About This Workflow
The Public Webhook Relay is designed to bridge the gap between external webhook services and your local development environment. It leverages webhook.site to receive any incoming POST requests, filters for new and relevant data, and then robustly forwards this information to a designated local n8n webhook endpoint. This workflow is crucial for testing webhook integrations, developing local applications that react to external events, or seamlessly integrating third-party services with your private n8n setup without exposing your local environment directly.
It intelligently retrieves and manages API tokens for webhook.site, polls for new requests at a configurable interval, and processes the incoming data to ensure only unprocessed POST requests are relayed. The relay also captures the latest timestamp to efficiently fetch only new data in subsequent runs, optimizing performance and preventing data duplication.
Key Features
- Automated Webhook Reception: Captures public POST requests from webhook.site.
- Intelligent Data Filtering: Processes incoming requests to identify and relay only new and relevant data.
- Local n8n Integration: Seamlessly forwards data to a specified local n8n webhook address.
- Configurable Polling: Set the frequency for checking new webhook requests (default is every 10 seconds).
- Token Management: Automatically handles authentication tokens for webhook.site.
- Extensible Storage: Easily adaptable to different storage solutions for managing data between runs.
How To Use
- Install Community Node: For local data persistence, go to n8n Settings > Community Nodes and install
@horka.tv/n8n-nodes-storage-kv. - Configure Local Webhook Address: In the
Local Webhook Addressnode, update thewebhookvalue to your local n8n workflow's trigger URL. - Set Schedule Trigger: Adjust the
Schedule Triggernode'ssecondsIntervalto define how often the workflow should check for new requests (default is 10 seconds). - Activate Workflow: Set the workflow to 'Active'.
- Obtain Auth Token: After the workflow runs once, check the input of the
Get Latest Requestsnode to find your webhook.site authentication token. - Test with Curl: Use a command like
curl -X POST -H "Content-Type: application/json" -d '{"foo":"bar"}' https://webhook.site/[YOUR_AUTH_TOKEN]to send a test request. - Verify Execution: Check the 'Executions' tab in n8n to confirm the workflow completed. The
Unprocessed Requestsnode should show your sent data, and your local n8n workflow should have been triggered with the correct payload.
Apps Used
Workflow JSON
{
"id": "dc3a60df-8363-40a7-a470-7315e9dd0536",
"name": "Public Webhook Relay: Seamlessly Forward Incoming Webhooks to Your Local n8n",
"nodes": 24,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: dc3a60df-8363...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.