# Webhooks

> A webhook is an HTTP callback that automatically sends real-time data from one application to another when a specific event occurs, such as a successful payment or subscription change.

- **URL**: https://dodopayments.com/glossary/webhooks

---

## What is a Webhook?

It is a tool that sends real-time data from one application to another when a specific event occurs. Unlike traditional methods, webhooks push information automatically without the need for repeated requests. This makes them efficient for tasks like sending notifications or updating data.

### How Webhook Works

- First a webhook URL is registered with the source application.

- When a specified event happens (e.g., a payment is made), the source app sends data to the webhook URL.

- The receiving app then processes the data.

### Webhook vs. API

**Webhook** is event-driven, it sends updates automatically which makes it ideal for real-time data sharing.