Webhook: an event pushed to your URL as it happens
An API waits until you ask. A webhook tells you. For an agent that has to react to a reply, a text or a code, that is the difference between answering at once and finding out later.
Your endpoint, receiving one event
- 10:02:00Event happens: a reply lands in an inboxType: email.received
- 10:02:00POST sent to https://app.northwind.example/hooksBody is JSON with the event’s data
- 10:02:00Signature header checked against your secretMatch, so the sender is who it says
- 10:02:01Endpoint answers 200Delivery counted as received
- 10:02:01Your agent reads the reply and actsWithin about a second
Northwind is an invented company. Nobody asked the sender whether anything was new.
A webhook is a message one system sends to a web address you choose, as soon as an event happens, so you don’t have to keep asking whether anything is new. The system sending it makes an HTTP request to your endpoint with data about the event, and your server acts on it.
What a webhook is
GitHub’s documentation About webhooks says webhooks let you subscribe to events and automatically receive a delivery of data at your server when they occur. You give the sender a URL once. When a subscribed event happens, it sends an HTTP request with data about the event to that URL, and your server acts on it.
Webhook versus API
With an API you call the other system and ask. Asking repeatedly to see whether anything changed is called polling. GitHub’s page says webhooks need less effort and fewer resources than polling, scale better when you watch many things, and give near real-time updates. The two work together: a webhook says that something happened, and an API call fetches the full detail or takes an action.
The endpoint and the signature
The endpoint is the URL on your server that receives the request. Because anyone could post to it, senders sign each delivery. GitHub, for one, sends a hash of the payload made with your secret in the `X-Hub-Signature-256` header, and its guide on validating deliveries tells your server to calculate its own and compare the two, with a constant-time comparison. Other senders use their own header names, so read each one’s docs.
Obsession is the toolkit for AI agents, through one API and one bill. Developers subscribe once with a signed webhook and receive every event from every piece, such as an email received or a text received, and every event also lands in the event log. The same events can start Zapier, Make and n8n flows.
The URL on your own server that the sender posts events to. It has to be reachable from the internet, answer quickly and check the signature before it trusts the body.
No. An API is how you ask another system for data or ask it to act. A webhook is how that system tells you something happened. Most products offer both.
It depends on the sender. Some retry for a while and some don’t, so check its docs. Reading the event log by cursor afterwards lets you catch up on anything you missed.
How events reach youSources
In the order the page cites them. Every page was read on 24 Nov 2026.