Introduction
A webhook (also called an HTTP push API or a web call back) is a way for an application to provide real-time information to other applications. A webhook provides data to other applications as it happens, meaning you get data instantly—unlike conventional APIs where you would have to poll for data very often to get it in real time.
How Webhooks Work
A webhook enables an application to send real-time updates to any third-party services. Updates are triggered by some event or action by the webhook provider here in this case Muvi and pushed to third-party services via HTTP requests. When a third-party service receives the request, a third-party service handles it with some custom logic, like sending an email or storing the data in a database.
For example, you use Muvi as an end-to-end OTT solution provider and want to automatically add customers' transactions to an accounting software e.g., Xero/ODOO, etc. Here’s how a webhook might work:
- You charge a customer that subscribes to your service, and the payment completes successfully.
- You’ve set up a webhook in Muvi to send real-time updates of all successful payments to some web service you own. So Muvi sends you the successful payment notification via HTTP.