Webhook Stop and Error Example
detail.loadingPreview
An example workflow that uses a webhook to trigger a process and stops with an error if a verification token is invalid.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow demonstrates how to set up a webhook that receives incoming data. It then proceeds to verify a provided token against a pre-defined one. If the tokens do not match, the workflow will halt execution and throw a custom error message. This pattern is useful for securing webhook endpoints and ensuring that only authorized requests are processed.
Key Features
- Receives data via a webhook.
- Verifies an incoming token against a stored token.
- Halts execution with a specific error message if the token is invalid.
How To Use
- Import the workflow: Load this JSON into your n8n instance.
- Configure the Webhook node: Copy the webhook URL provided by n8n and set it as the endpoint for your external service.
- Set the verification token: In the
Preparenode, update theverificationTokenvalue to your desired secret token. - Send a POST request to the webhook URL: Include a JSON payload with a
verification_tokenfield. If the token does not match the one in thePreparenode, the workflow will stop with an error. If it matches, the workflow will proceed.
Apps Used
Workflow JSON
{
"id": "35b8b948-0c02-49f0-a855-24db818e7a99",
"name": "Webhook Stop and Error Example",
"nodes": 0,
"category": "Stopanderror",
"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: 35b8b948-0c02...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
n8n Error Alerting to LINE: Never Miss a Workflow Failure Again
Instantly get notified on LINE whenever an n8n workflow encounters an error. This template ensures you're always aware of issues, allowing for prompt resolution and uninterrupted automation.
Telegram Profanity & Toxicity Filter
This n8n workflow automatically monitors incoming Telegram messages for profanity and toxic language. It leverages Google's Perspective API to analyze message content, and if a message is deemed inappropriate, the workflow sends an automated warning response back to the sender.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
AI-Powered Abandoned Cart Recovery & Nurturing
This n8n workflow intelligently identifies customers who've abandoned their shopping carts, leverages AI to craft personalized recovery emails, and automatically sends them. It then logs all activity to Google Sheets for seamless tracking and optimization of your sales recovery efforts.
AI-Powered Amazon Competitor Review Analysis
Automate competitor insights by scraping Amazon product reviews, storing them in Google Sheets, and leveraging AI for intelligent summarization. This workflow provides a seamless solution to stay ahead of the competition and inform your product strategy with real-time customer feedback.
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.