Webhooks
Webhooks are user-defined HTTP callbacks that are triggered by specific events. When an event occurs in a source system, it sends an HTTP POST request to a configured URL with event data, enabling real-time communication between applications.
Unlike polling (repeatedly checking for changes), webhooks are push-based — the source system notifies you immediately when something happens. This is more efficient and provides near-instant updates.
Common webhook use cases include payment notifications (Stripe sends a webhook when a payment succeeds), CI/CD triggers (GitHub sends a webhook on push to trigger a build), and chat integrations (Slack incoming webhooks for sending messages).
Best practices include verifying webhook signatures (to ensure the request is authentic), responding quickly with a 200 status (process asynchronously if needed), handling retries and idempotency (webhooks may be sent more than once), and securing the endpoint (HTTPS, IP whitelisting).
Want to learn more?
Explore more developer terms or read in-depth articles on the blog.
Browse all terms