Webhook
Term 166 of 175 · Technology
In one sentence
A webhook is an automatic HTTP notification that one system sends to another system's URL the moment an event happens, in real time. It lets applications integrate without one having to ask the other for updates every so often.
Reviewed by Juan Manuel Garrido
Co-founder of VantegrateLinkedIn
Webhook definition
A webhook is an integration mechanism through which one application automatically sends an HTTP notification to a URL defined by another application, right when a relevant event happens (for example, a sale closes, a payment is approved or an order is delivered). Instead of the receiving system having to ask over and over "has anything new happened?", it is the sending system that lets you know as soon as it happens. That is why webhooks are often described as a "reverse API" or as HTTP callbacks.
The core piece is the receiving endpoint: a public URL that listens for those notifications and, when it gets one, triggers an action (saving a record, sending a message, updating a field). Webhooks are one of the most common ways to connect business tools to each other, and they are part of the integration work we coordinate on Salesforce projects when the CRM has to be linked to payment gateways, e-commerce platforms or messaging channels.
How a webhook works, step by step
A webhook flow always has the same players: a system that sends the notification and a system that receives it. First, in the sending system (say, a payment gateway) you configure a destination URL and choose the events you care about (payment approved, payment declined, refund). When one of those events happens, the sender builds a message, usually in JSON format, with the event data, and sends it to your URL through an HTTP POST request. Your endpoint receives that request, reads its content (the payload) and runs the logic you defined. Finally, your system replies with an HTTP status code (ideally a 200) to confirm it received the notification correctly.
That acknowledgment is key: if your endpoint does not respond in time or returns an error, most providers retry the delivery later, sometimes for hours. That is why a well-built endpoint responds quickly (it confirms receipt) and handles the heavy work afterward, in the background.
Why it matters for the business
The big advantage of a webhook is that it works in real time and efficiently. The classic alternative is polling: your system asks the other one every few minutes "is there anything new?". Polling wastes resources (most queries come back empty) and adds delay (you only find out on the next query). A webhook flips the logic: you do not ask anything, you get notified as soon as there is news. For a company, this means processes that react instantly: a customer pays and the order is released automatically, a lead fills out a form and lands in the CRM right away, a shipment is delivered and the customer gets the notification with no human involvement.
Webhook vs API: how they differ
Webhooks and APIs are often confused because both connect systems, but the difference is the direction and the trigger:
| Aspect | Webhook | API (request) |
|---|---|---|
| Who starts it | The sending system, when an event happens | The system that needs the data |
| When it happens | In real time, when something occurs | Whenever you query it |
| Model | "Don't call us, we'll call you" | Request and response |
| Efficiency | High: data only travels when there is news | Lower if you have to query often (polling) |
| Typical use | Receiving event notifications | Requesting or sending data on demand |
In practice they complement each other: a webhook tells you that something happened, and your system often responds by calling the provider's API to pull the full record.
A concrete example in Argentina
Picture an e-commerce business that takes payments through Mercado Pago and runs its CRM on Salesforce. When a buyer pays, Mercado Pago fires a webhook to the store's endpoint. Within seconds, that notification sets off a chain: the order is marked as paid, the stock is deducted, the e-invoice is generated and a WhatsApp confirmation goes out to the customer. Without webhooks, the team would have to check the payments dashboard by hand or schedule periodic queries, with the resulting delay and risk of error. The same applies to Calendly notifying you of a booked meeting, an e-signature platform confirming a signed document, or a logistics system reporting a delivery.
Common mistakes and precautions
- Not validating the source. Since your URL is public, anyone could send it fake data. Good providers sign every delivery (for example, with an HMAC signature in a header) so you can verify the notification really came from them.
- Not handling retries or duplicates. The same event can arrive more than once. The endpoint should be idempotent: processing the same notification twice must not duplicate the order or the charge.
- Processing everything inline. If your endpoint takes too long, the provider treats it as down and retries. It is better to respond quickly and hand the heavy work off to a queue.
- Trusting the arrival order. Events do not always arrive in sequence; your logic should tolerate an "order delivered" showing up before an "order shipped".
In integration projects, webhooks are often combined with iPaaS or middleware platforms, which receive the notification, transform it and route it to the right system, adding security, retries and traceability without having to code everything from scratch.
FAQs about Webhook
What is a webhook?
What is a webhook?
A webhook is an integration mechanism through which an application automatically sends an HTTP notification to another application's URL when a specific event happens, such as an approved payment or a delivered order. The receiving system listens at that URL (its endpoint) and triggers an action when the notification arrives. Its big advantage is that it works in real time: the sending system lets you know as soon as something happens, instead of the receiver having to check repeatedly for news.
What is the difference between a webhook and an API?
What is the difference between a webhook and an API?
The difference is who starts the communication and when. With a traditional API, your system queries the other one when it needs data; it is an on-demand request and response model. With a webhook, the sending system notifies you automatically as soon as an event happens, without you asking anything. That is why a webhook is called a reverse API. In practice they complement each other: the webhook tells you something happened and, if you need more detail, your system can call the provider's API to pull the full record.
What is a webhook used for in a company?
What is a webhook used for in a company?
It is used to connect tools and automate processes in real time without human involvement. Typical examples: a payment gateway notifying the CRM when a customer pays, a web form creating the lead on the spot, a logistics system reporting a delivery and triggering a message to the customer, or a calendar platform notifying you when someone books a meeting. In every case, the webhook removes manual checks or periodic queries, cutting delays and errors.
Are webhooks secure?
Are webhooks secure?
They can be if they are implemented carefully. Since the URL that receives the notifications is public, the main risk is someone sending fake data. To prevent it, serious providers sign every delivery (for example with an HMAC signature in a header) and the receiver verifies that signature before processing the notification. It also helps to use HTTPS, validate the content, and design the endpoint to be idempotent, so that receiving the same event twice does not duplicate an order or a charge.
What happens if my system does not receive a webhook?
What happens if my system does not receive a webhook?
Most providers retry the delivery when the receiving endpoint does not respond or returns an error, repeating the attempt over a period that can range from minutes to hours. That is why it is important for your endpoint to confirm receipt quickly by responding with an HTTP 200 code and handle the heavy work afterward, in the background. If a notification is still lost, many platforms offer an event log or a query API to recover the ones that did not arrive.
We bring this to your Salesforce
Salesforce implementation, integration and support for LatAm companies, focused on the team actually using it instead of going back to spreadsheets. Tell us where your org stands.
Related terms
- APIAn API (application programming interface) is a contract that lets two software systems exchange data and functions without knowing each other's internal code. It defines, in a standard way, which requests you can make and which responses to expect.
- System IntegrationAn integration is the technical connection that lets two or more systems (CRM, ERP, e-commerce, etc.) exchange data automatically, without manual entry, so information flows in sync between them in real time or in batches.
- ApexApex is Salesforce's proprietary, object-oriented programming language, similar to Java, that runs on Salesforce's servers. It lets you add custom business logic (triggers, classes and integrations) when declarative tools such as Flow are not enough.
- CRMCRM (Customer Relationship Management) is the system that centralizes all data and interactions with customers and prospects (sales, service and marketing) on a single platform, so you can manage relationships, automate sales processes and make decisions with unified information.
- Customer 360Customer 360 is the single, complete view of a customer that brings together in one profile all their data and interactions (sales, marketing, service, commerce) spread across different systems, so the whole company works from the same information.
- Salesforce AdministratorA Salesforce Administrator is the person who configures, maintains and customizes the platform without coding: they manage users, permissions, objects, automations and reports so that sales, marketing and service teams work on reliable data.
Related questions
Salesforce
Salesforce implementation, integration and support for LatAm companies, focused on real team adoption.
How Salesforce solves itFive AI products that work on top of the CRM you already use. They don't replace your system: they add the layer you do by hand today.





