What is a webhook?

A webhook is a URL you give to another system so it can call you the instant something happens there, sending the details in the request. It is the difference between being told and having to keep asking, which is why every automation that has to react in seconds is built on one.

Reviewed:

In short

If a vendor tells you a sync runs "every 15 minutes", they are polling. For a lead form that is a 15-minute head start handed to whoever answers first. Ask whether they support webhooks before you ask about anything else.

Webhook compared with polling on delay, cost and reliability.
WebhookPolling
Who starts the callThe system where the event happenedYours, on a timer
Typical delayUnder a secondHalf the polling interval, on average
Cost when nothing happensNothingEvery empty check still runs
Needs a public URLYesNo
Behaviour if your side is downRetries, then the event is lostCatches up on the next poll
Good forReacting fast to eventsBulk sync, systems with no webhooks

Sources: GitHub docs: about webhooks · n8n docs: webhook node · reviewed: Jun 17, 2026

Where it shows up in practice

A lead form on your site

The form posts to a webhook, the automation enriches and routes it, and the first contact goes out before the person has closed the tab. This is the whole mechanism behind cutting response time to seconds.

A payment that clears

The payment provider calls your webhook, and the invoice, the CRM stage and the delivery note all move at once. Polling here means an accounting system that is right on average and wrong at any given moment.

An inbound WhatsApp message

Meta delivers each message to a webhook you register. There is no other way to receive them, which is why every WhatsApp build starts with a public HTTPS endpoint and a verify token.

When polling is still correct

The other system offers no webhooks, or you need a nightly reconciliation that catches anything missed. We usually run both: webhooks for speed, a scheduled sweep for completeness.

How we use it

Webhooks are the least interesting thing on this list and the one that most often decides whether a project hits its number. The reason is that reaction time is usually the whole value. A lead answered in thirty seconds and the same lead answered forty minutes later are not the same lead, and the gap between those two outcomes is often just the difference between an event push and a five-minute timer.

Two practical notes from running these in production. First, treat the endpoint as public and hostile: verify the signature the sender provides, and reject anything unsigned, because a webhook URL is a door into your automation. Second, plan for the sender giving up. Most providers retry a handful of times and then drop the event, so anything that must not be lost gets a nightly sweep that compares both sides and fills the gaps. We used exactly this pairing on the build described in cutting first contact from 4.5 hours to 30 seconds, and it is standard in every business automation we ship.

← All Glossary

FAQ

Frequently asked

01.What is a webhook in simple terms?

A phone number you hand to another system so it can ring you when something happens, instead of you ringing it every few minutes to ask. The call carries the details of what happened.

02.What is the difference between a webhook and an API?

Direction. With an API you call the other system when you want something. With a webhook the other system calls you when it has something. Most integrations use both: a webhook to hear about the event, then API calls to act on it.

03.Are webhooks secure?

They are as secure as you make them. The endpoint is public, so it needs HTTPS, signature verification against a shared secret, and rejection of anything that fails the check. An unverified webhook endpoint is an open door, and we treat it as a build blocker.

04.What happens if my system is down when a webhook fires?

The sender retries for a while and then gives up, so the event can be lost for good. For anything that matters we add a scheduled reconciliation that compares both systems and backfills whatever the retries missed.

05.Do I need a webhook for a WhatsApp bot?

Yes. Meta delivers inbound WhatsApp messages by calling a webhook URL you register and verify. There is no polling option, so a public HTTPS endpoint is the first thing set up on any WhatsApp project.

Related pages

Which process is costing you the most?

Thirty minutes, free. You leave with a concrete plan for fixing it and the number that process costs you. The plan is yours to keep, even if you build it without us.

Book your free audit