> ## Documentation Index
> Fetch the complete documentation index at: https://dub.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Event types

> List of supported webhook event types and their payloads

Webhooks send real-time notifications when events happen in your Dub workspace. All webhook payloads follow this structure:

```json webhook-payload.json theme={null}
{
  "id": "evt_KleiO4HBwZFbO1vZLWIPZ2AtX",
  "event": "link.created",
  "createdAt": "2024-08-26T16:41:52.346Z",
  "data": {}
}
```

* **id** – Unique event ID
* **event** – Event type (e.g. `link.created`)
* **createdAt** – ISO 8601 timestamp when the event was created
* **data** – Event-specific payload

## Dub Partners

[Dub Partners](https://dub.co/partners) lets you run a partner program with referral links, commissions, and payouts. Here are the webhook events that are available for Dub Partners:

| Event Type                                                                             | Description                                                                                                     |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [`partner.enrolled`](/docs/webhooks/events/partner-enrolled)                           | Occurs when a **new partner is enrolled** in your partner program.                                              |
| [`partner.application_submitted`](/docs/webhooks/events/partner-application-submitted) | Occurs when a **partner submits an application** to join your partner program.                                  |
| [`lead.created`](/docs/webhooks/events/lead-created)                                   | Occurs when a **new lead is tracked**.                                                                          |
| [`sale.created`](/docs/webhooks/events/sale-created)                                   | Occurs when a **new sale is tracked**.                                                                          |
| [`commission.created`](/docs/webhooks/events/commission-created)                       | Occurs when a **new commission is generated** — from a tracked conversion or created manually in the dashboard. |

## Dub Links

[Dub Links](https://dub.co/links) is your short link and analytics platform for creating, managing, and tracking links. Here are the webhook events that are available for Dub Links:

| Event Type                                           | Description                                                                                              |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [`link.created`](/docs/webhooks/events/link-created) | Occurs when a **new link is created** in your workspace.                                                 |
| [`link.updated`](/docs/webhooks/events/link-updated) | Occurs when a **link is updated** in your workspace.                                                     |
| [`link.deleted`](/docs/webhooks/events/link-deleted) | Occurs when a **link is deleted** in your workspace.                                                     |
| [`link.clicked`](/docs/webhooks/events/link-clicked) | Occurs when a **user clicks a link** (scoped to specific links; you choose which links to subscribe to). |
