Software Development

What is Webhook?

Quick answer

An automated message one application sends to another via an HTTP request when a specific event happens.

Webhook, explained

Instead of repeatedly asking a service whether anything has changed, a process called polling, a webhook lets the service notify you immediately. You give the provider a URL, and when an event occurs, it sends a POST request to that URL with details, usually in JSON.

For example, when a customer completes a payment, a payment gateway might send a webhook to an online store's server, which then marks the order as paid and sends a confirmation email. Webhooks also connect code repositories to CI/CD pipelines and chat tools to project trackers. Because anyone could send requests to a webhook URL, receivers should verify signatures, handle duplicate deliveries, and respond quickly while processing in the background.

Related terms

Guides that mention Webhook