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
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.
Automated Multi-Platform Influencer Discovery & Qualification
This powerful n8n workflow automates the entire process of discovering, scoring, and qualifying ideal influencers across Instagram, TikTok, and YouTube for your marketing campaigns. Streamline your talent acquisition by leveraging custom criteria and a sophisticated scoring algorithm.
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.
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.
AI-Powered Accounts Receivable Reporting for Sabre EDI
This n8n workflow automates the extraction of Accounts Receivable (AR) data from complex Sabre EDI (Interface User Record) files stored in Google Drive. It leverages an AI agent, powered by OpenAI, to intelligently process financial information and generate structured AR reports. The workflow ensures accuracy by utilizing a Pinecone vector database for contextual understanding of EDI guidelines.
Automate JSON Data Import to Google Sheets
Seamlessly import data from local JSON files directly into Google Sheets. This workflow automates the process of reading structured JSON data and appending it to your chosen spreadsheet, keeping your data up-to-date effortlessly.