Building apps
What is a webhook?
A webhook is an automated message one system sends to another the moment something happens, delivered to a URL you provide, so the receiving app learns about the event without having to ask.
New to Bolt? Sign up free.
Technical definition
A webhook is an HTTP callback triggered by an event. The receiving application registers an endpoint URL with the sending system, and when a subscribed event occurs, the sender issues a request to that URL carrying a payload describing the event.
This inverts the usual direction. In a standard API call, your application asks and waits. With a webhook, the other system tells you when there is something to know.
Production webhook handling requires verifying the signature so you know the request is genuine, returning a success response fast, processing idempotently since deliveries can repeat, and handling retries.
In plain terms
An API call is you phoning to ask whether anything has happened. A webhook is them phoning you when it does.
The difference matters because the first approach means calling constantly and mostly hearing nothing.
Why it matters
Webhooks are what make things happen at the right moment instead of on a schedule.
The payment case is the clearest. A customer pays through Stripe. Without a webhook, your app does not know: it either waits for the customer to return to a confirmation page, which they may not, or it checks periodically and confirms the order minutes later. With a webhook, Stripe tells your app the instant the payment succeeds, and the order is confirmed and the email sent while the customer is still looking at the screen.
The same pattern covers a form submission triggering a CRM record, a calendar booking sending a reminder, or a shipment updating an order.
Two things to get right. Verify the signature, because your webhook URL is reachable by anyone and an unverified endpoint will accept forged events. And handle repeats, because senders retry on failure and processing the same payment twice is a real problem.
