Templates / 🗲 Creating a Secure Webhook - MUST HAVE

🗲 Creating a Secure Webhook - MUST HAVE

Ready for 3.0

by Lucas Peyrin ✓ · 6,046 views · created 2025-06-24 · SecOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Check API Key (HTTP Request): calls an HTTP API
  2. Registered API Keys (Edit Fields (Set)): sets 1 field: registered_api_keys
  3. API Key Identified (If): checks a condition and branches into true / false
  4. Split Out: splits a list into separate items
  5. Respond to Webhook: sends the response back to the webhook caller
  6. Respond to Webhook: sends the response back to the webhook caller
  7. Find API Key (Filter): keeps only the items that match a condition
  8. Test Secure Webhook (HTTP Request): calls an HTTP API (POST)

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 (7)

From the author

How it works This workflow demonstrates a fundamental pattern for securing a webhook by requiring an API key. It acts as a gatekeeper, checking for a valid key in the request header before allowing the request to proceed. 1. Incoming Request: The Secured…

Excerpt from Lucas Peyrin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.