A webhook is a method that allows one application to automatically send data to another application when a specific event occurs.
Instead of repeatedly checking whether something has changed, the receiving application provides an endpoint that the sending service can call when an event happens.
Webhooks are commonly used for payments, notifications, CI/CD workflows, SaaS integrations, and automated data pipelines.
A typical webhook workflow includes:
Webhook payloads are commonly formatted as JSON.
Webhooks and APIs both allow applications to exchange information, but they differ in how communication begins.
A webhook is therefore often described as event-driven or push-based communication.
Applications frequently use APIs and webhooks together.
Polling repeatedly asks a server whether new information is available.
Webhooks send information only when an event occurs.
Polling:
Client → Check
Client → Check
Client → Check
Server → New Data
Webhook:
Event Occurs
↓
Server → Client
Webhooks can reduce unnecessary requests, while polling may be useful when webhook support is unavailable.
Reliable systems often use retries, idempotency, logging, and signature verification.
Webhook endpoints should verify that incoming requests originate from the expected sender.
Common protections include:
Sensitive credentials should not be exposed directly in webhook payloads.
Webhooks can automate data pipelines after scraping or crawling jobs finish.
For example, a scraping platform can send a webhook when a data collection task completes.
The receiving application can then automatically:
This removes the need to continuously check job status.
Suppose a data collection platform finishes a product monitoring task and sends:
{
"event": "job.completed",
"job_id": "job_1042",
"records": 250,
"status": "success"
}
The receiving application processes the event and starts its data validation workflow.
It returns:
HTTP 200 OK
If delivery fails, the sending service may retry according to its webhook policy.
A webhook is an event-driven HTTP callback that automatically sends information from one application to another.
Webhooks provide efficient, near real-time integrations and reduce the need for repeated polling. Reliable implementations should include authentication, retries, idempotency, and proper error handling.