TECHHAWKS

Software · Glossary

Webhook

A webhook is an automatic HTTP message one system sends to another when a specific event happens, so the receiver does not have to keep checking.

Definition

A webhook is a way for one system to notify another that something has happened. The receiving system registers a URL with the sending system, and when a defined event occurs, such as a payment succeeding, a booking being modified or a document being signed, the sender makes an HTTP request, usually a POST, to that URL containing details of the event.

Webhooks are push based, which contrasts with polling, where the receiver repeatedly asks an API whether anything has changed. Pushing events reduces delay and unnecessary requests. Reliable webhook handling requires several safeguards. The receiver should verify that each message is genuine, commonly by checking a signature calculated with a shared secret. Because senders retry when they get no successful response, the same event can arrive more than once, so handlers should be idempotent. Events can also arrive out of order or be missed during an outage, so many integrations pair webhooks with a periodic reconciliation against the sender's API.

Example

A hypothetical apartment operator's payment provider sends a webhook each time a tenant's rent payment succeeds. The operator's system checks the signature, records the payment against the right lease, ignores the event if it has already been processed, and triggers a receipt email to the tenant.

Why it matters

Webhooks let systems react within seconds, for example updating a guest record when a booking changes or alerting staff when a payment fails. Poorly handled webhooks are a common source of silent data errors: duplicate charges, missed updates or records out of step. Signature checks, idempotent processing, logging and reconciliation make the difference between an integration that works in a demonstration and one that holds up in daily operation.

Tell us what needs building.

Thirty minutes with the engineers who would build it. Free, no commitment.

Book a call