Skip to content

What it is

A webhook is an HTTP callback: the service POSTs an event to your URL, pushing it in real time instead of forcing you to poll.

A webhook inverts the direction of the conversation. Instead of your application asking "did anything happen?" every minute, the service calls you when something happens. You register a URL (https://your-app.com/webhooks/stripe), the service stores it, and when the event fires, the service POSTs the event payload to that URL.

The concept is old in event-driven systems and new in the web era. It was formalized as the term webhook by Jeff Lindsay around 2007, in a post titled "Giving Web Applications a Voice". GitHub, Stripe, Shopify and Slack turned the pattern into an industry standard.