Skip to content

Integrations

What Is a Webhook? How It Works and When to Use It

Learn how webhooks notify other systems when an event happens, how they work with APIs and AI, and how to handle failures and duplicate deliveries.

Published on November 30, 2026. 5 min read

A webhook is an automatic notification that one system sends to another when an event occurs. When a store confirms that an order has shipped, for example, it can notify the support system so the team can see the new status. The support system registers a URL to receive those notifications. The store usually sends the event data in an HTTP POST request.

How does a webhook work in practice?

From the event to the system update
  1. Event recorded: The store confirms the shipment.
  2. Notification sent: The store sends the event data to the registered URL.
  3. Receipt acknowledged: The receiving system verifies and stores the event before acknowledging delivery.
  4. Order updated: Processing uses the event ID to prevent duplicate effects.

The store records the shipment and sends the order ID, event type, and timestamp. The support system verifies where the notification came from and stores it before acknowledging delivery. A background process then updates the order. The team can track two outcomes separately: whether the notification arrived and whether the update succeeded.

After the update, a team can use AI to suggest a summary of the order history or draft a reply for an agent to review. The order status comes from the store's data. If the draft fails, the updated status is still available.

What is the difference between a webhook and an API?

A system integration can use both. The API lets support look up the status whenever needed. The webhook tells support when the status changes. A common setup uses the webhook to receive the order ID, then calls the API to retrieve authorized details or confirm the latest state.

Use a webhook when another system needs to learn about a change quickly and the provider offers that event. Scheduled polling may be enough when updates can wait or the provider offers no notifications. It can also help find records that were missed during an outage.

How do you prevent lost notifications and duplicate updates?

  • Verify the sender. Use HTTPS and check the signature according to the provider's documentation. Subscribe only to the event types the operation needs.
  • Store the notification before acknowledging it. Record the event durably and handle longer tasks in the background. Check the provider's retry policy and keep a way to recover failed deliveries.
  • Expect duplicates and delays. Use a stable event ID to prevent duplicate effects, including when deliveries arrive together. If an older notification arrives after a newer one, respect the latest version or look up the current state at the source.
  • Monitor delivery and processing. Record the event ID, time, and outcome of each stage. Set an alert when events have been pending longer than expected. The team needs to find a failure and resume processing without repeating the action.

These practices follow the OWASP webhook security guidance.

What should you check before automating?

Choose an event with a clear consequence for the team. Agree on who owns the data, how long the update can wait, and what happens when it is late. Test normal delivery, duplicates, out-of-order delivery, and recovery after an outage.

For Bom Controle, UEEK integrated a native app with the ERP's APIs and supplied documentation so the internal team could take over maintenance. For Itaú Mulher Empreendedora, UEEK built a learning management system and a website with content management. Both projects illustrate the value of deciding which system owns each piece of information and who maintains it.

If your team copies status updates between tools or relies on manual lookups, custom software development can help design the integration. For related terms, see the Technology, AI, and Security Glossary.

Frequently asked questions

Does a webhook deliver the notification immediately?

Delivery usually starts shortly after the event, but network conditions, event volume, and the receiving system's availability affect the timing. Decide how much delay the operation can tolerate and monitor the time between the event and the update.

Does a webhook replace an API?

They often work together. A webhook reports that something happened. An API lets systems look up or update information within their permissions and helps confirm the current record after a failure.

Does a webhook need AI?

Software rules handle delivery and receipt. AI can help with later tasks, such as summarizing the history for support. Status changes and other actions that affect operations should follow the responsible system's data and rules.

Topics

  • webhook
  • what is a webhook
  • system integration
  • glossary

Want this in production?

UEEK does this kind of work in Custom development.

See the solution