Term

Webhook

A webhook is like a notification system that automatically sends information from one app to another when something specific happens.
Instead of checking for updates yourself, a webhook instantly delivers the data as soon as the event occurs. It helps apps stay connected and work together in real time.

Questions

What is webhook?
A webhook is like a notification system that automatically sends information from one app to another when something specific happens.

Instead of checking for updates yourself, a webhook instantly delivers the data as soon as the event occurs. It helps apps stay connected and work together in real time.
How a webhook looks like?
A webhook is essentially a URL (web address) provided by one app, where another app sends information when an event happens.

Here’s an example of what a webhook URL might look like:

https://example.com/webhooks/order-updated

When an event (like "order updated") happens, the app sends a POST request to this URL with data about the event in a format like JSON or XML. Here's an example of the data sent in JSON:

{ "order_id": "12345", "status": "shipped", "customer_email": "customer@example.com" }

This lets the receiving app process the information immediately.