Webhook.
A webhook is an automatic notification that one system sends to another over the internet as soon as something happens there, such as a new order or a paid invoice. Instead of constantly asking whether there is news, the receiving system is actively informed and can react immediately.
Webhook — Explained in Detail
At its core a webhook is a simple HTTP request, usually a POST with a JSON body, that a system sends to an address registered in advance. That address belongs to the receiving system and is often called an endpoint. When an event triggers the webhook, such as 'payment succeeded', 'form submitted' or 'appointment cancelled', the message contains the key data: what happened, when, and which records are affected.
The difference from a classic API lies in the direction. With an API, your own system actively asks: 'Are there new orders?' Doing that every few minutes is called polling; it produces many empty requests, and news arrives late. A webhook reverses the principle: the other system gets in touch as soon as it has something to report. Webhooks and APIs therefore often complement each other: the webhook reports that something changed, and the receiving system fetches the full data via the API when needed.
Typical uses are payment providers informing a shop about successful or failed payments, shop systems such as Shopify reporting new orders to an inventory system, form services, calendars, email delivery services with delivery and bounce notices, and version control systems that trigger a deployment after every push. In automation, webhooks are often the trigger that starts a workflow in the first place.
Because a webhook endpoint is a publicly reachable address, it must be secured. Reputable providers sign every message with a secret key; the receiving system checks that signature and discards anything that does not match. It also holds that webhooks can arrive twice or out of order, and they can fail if the receiver is unavailable at that moment. A robust receiver therefore processes every message so that a repeat does no harm, and additionally reconciles important data regularly via the API.
What matters in the implementation
First, signature verification: without it, anyone who knows the address can inject forged events, such as a supposedly paid order. Second, a fast response: the receiver should acknowledge receipt immediately and do the actual work in the background afterwards, otherwise the sender treats delivery as failed and sends it again. Third, idempotency: every message carries a unique ID, and an ID that has already been processed is not executed a second time.
Fourth, logging: incoming webhooks should be stored with time, content and result, so you can later trace why an order never reached the system. Fifth, reconciliation as a safety net: a nightly comparison via the API finds events that were lost despite retries.
Example: from the shop straight into the CRM
An example: a wine merchant in the canton of Bern sells through an online shop and looks after business customers in a CRM. Until now an employee transfers every business order by hand. Now the shop reports each order via webhook to a small service that checks whether it is a business customer, creates or updates the contact in the CRM and creates a task for the field sales team.
If the webhook is delivered twice, the service recognises the order number and creates nothing twice. If the CRM is briefly down, the events land in a queue and are processed later. Connections like this are a typical building block when we develop a custom CRM or link processes with AI automation for SMEs.
Related Page
APIFrequently Asked Questions About Webhook
With an API, your system actively asks the other one for data. With a webhook, the other system gets in touch on its own as soon as an event occurs. The two are often combined: the webhook signals the change, the API then delivers the full data.
They are as secure as the receiver makes them. HTTPS, checking the signature the sender includes, and rejecting messages with an invalid signature are mandatory. Sensitive actions should additionally be cross-checked via the API rather than blindly trusting the message content.
Most providers retry delivery several times over a certain period. If the receiver is unavailable for longer, an event can still be lost. That is why important data should also be reconciled regularly via the API.
More Terms Starting with "W"
WebMCP (Web Model Context Protocol)
WebMCP is an open draft standard that lets a website expose its functions directly as tools for AI a...
WebP (Image Format)
WebP is a modern image format by Google that reduces JPEG and PNG images by 25–50% in file size — wi...
Web3 Marketing
Web3 Marketing describes marketing strategies based on decentralized technologies: blockchain, NFTs,...
Ready for Your Project?
Apply this knowledge to your website — DLM Digital will help you.