Reference > Core Concepts

Webhooks

Understand how webhooks work in n8n -- what they are, when to use them, and how they fit into workflow design.

A webhook is an HTTP callback: an external system sends a request to a URL you control, and that request triggers a workflow. In n8n, the Webhook node creates that URL and starts an execution whenever a request arrives. Unlike polling, webhooks deliver data instantly, which makes them the right trigger for real-time events and inbound API calls.

What are webhooks in n8n?

A webhook is an HTTP callback: an external system sends an HTTP request to a URL you control, and that request triggers an action. Unlike polling (where n8n checks a service periodically), webhooks deliver data instantly when an event occurs.

In n8n, the Webhook node creates a URL endpoint that starts a workflow execution whenever it receives an HTTP request.

When should you use a webhook trigger?

Use a webhook trigger when:

  • An external service supports webhook notifications (GitHub, Stripe, Slack, etc.)
  • You need real-time processing (no polling delay)
  • You want to build an API endpoint that other systems can call

Use a polling trigger instead when the external service does not support webhooks or when you need to check for changes on a schedule.

What are the key webhook concepts?

Test vs Production URLs. Every Webhook node has two URLs. The test URL only works while you are listening in the editor. The production URL works when the workflow is active. External services must use the production URL.

Response modes. You control when and what the webhook sends back to the caller: immediately (fast acknowledgment), after the workflow finishes, or at a specific point using a Respond to Webhook node.

Security. n8n supports Basic Auth, Header Auth, and JWT Auth directly on the Webhook node. For production deployments, always enable authentication.

For full configuration details including HTTP methods, parameters, response modes, and patterns, see the Webhook Node Reference.

Related tips: Webhook Mastery, Security Best Practices

Where can you learn more?

Showcase builds

19 complete workflows from my own projects, each with its n8n workflow JSON to import. Showcase entries link the file at the end of the article.

See the showcase builds

Keep reading

190 entries grouped by topic, from first workflow to queue mode. Free, no signup.

Browse the encyclopedia

Need it built?

I design, build and run n8n systems for clients. Every engagement starts with a $1,500 diagnostic audit, credited toward the build.

Book an introductory call