# Introducing real-time webhooks for Dub

Leverage webhooks to connect Dub with your data stack and workflows – with native integrations for Segment, Zapier, Slack, and more.

- Published: January 15, 2025
- Last updated: April 18, 2025
- Authors: [Kiran Krishnan](https://dub.co/authors/kiran), [Steven Tey](https://dub.co/authors/steven)
- Category: [Engineering](https://dub.co/blog/category/engineering)
- Source: https://dub.co/blog/introducing-webhooks

Today, we're excited to announce real-time webhooks for Dub.

Webhooks are a powerful way to connect Dub with your data stack and workflows. Here are a few use cases:

1. Create a new link on Dub when a [Zapier](https://dub.co/docs/integrations/zapier) event is triggered
2. Send click events in real time to [Segment](https://dub.co/docs/integrations/segment) for further processing
3. Get notified on [Slack](https://dub.co/docs/integrations/slack) when someone clicks on your link
4. Build gamified referral programs with [Dub Conversions](https://dub.co/blog/introducing-dub-conversions) – e.g. increment usage credits for the referrer when there is a [new signup](https://dub.co/docs/conversions/leads/introduction)

The possibilities are endless.

To help you visualize how webhooks work (and how they're different from our [REST API](https://dub.co/blog/announcing-dub-api)), here's a quick interactive example:

As you can see, webhooks are _push-based_, meaning that Dub will send events to your webhook receiver endpoint when specific events occur, while a REST API is _pull-based_, meaning that you need to consistently poll the API endpoint to get real-time updates.

## Real-time event logs

When you create a webhook on Dub, we also provide you with an **Event Logs** tab where you can view a list of all events that have been sent to your webhook receiver endpoint in real time.

![Webhook event logs](https://assets.dub.co/blog/webhook-event-logs.jpg)

If you click on each event in the **Event Logs** tab, you can also view the raw event data and see the response from your webhook receiver.

Learn more about [webhook event logs](https://dub.co/docs/concepts/webhooks/introduction#viewing-webhook-event-logs).

## Integrations with Segment, Zapier, Slack, and more

We're also excited to announce several webhook-based integrations:

- [Segment](https://dub.co/docs/integrations/segment): Send click, [lead](https://dub.co/docs/conversions/leads/introduction), and [sale](https://dub.co/docs/conversions/sales/introduction) events to Segment for further processing
- [Zapier](https://dub.co/docs/integrations/zapier): Perform actions on Dub when events happen on Zapier (or vice versa)
- [Slack](https://dub.co/docs/integrations/slack): Get notified on Slack when events happen on Dub
- [Tinybird](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-dub): Stream Dub events to Tinybird for real-time analytics

In the future, we're planning to add more webhook-based integrations with ad platforms like Meta, Google, and Tiktok, which you can use to automatically send [conversion events](https://dub.co/blog/introducing-dub-conversions) to measure the success of your campaigns in real time.

If you have any other platforms you'd like us to support, please [let us know](https://dub.co/contact/support).

## Supported webhook events

Below is the list of all currently supported [webhook events](https://dub.co/docs/concepts/webhooks/event-types):

| Event type     | Description                                                                       | Payload                                                                   |
| -------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `link.created` | A new link has been created                                                       | [Example](https://dub.co/docs/concepts/webhooks/event-types#link-created) |
| `link.updated` | A link has been updated                                                           | [Example](https://dub.co/docs/concepts/webhooks/event-types#link-updated) |
| `link.deleted` | A link has been deleted                                                           | [Example](https://dub.co/docs/concepts/webhooks/event-types#link-deleted) |
| `link.clicked` | A link has been clicked on                                                        | [Example](https://dub.co/docs/concepts/webhooks/event-types#link-clicked) |
| `lead.created` | A new [lead has been created](https://dub.co/docs/conversions/leads/introduction) | [Example](https://dub.co/docs/concepts/webhooks/event-types#lead-created) |
| `sale.created` | A new [sale has been created](https://dub.co/docs/conversions/sales/introduction) | [Example](https://dub.co/docs/concepts/webhooks/event-types#sale-created) |

If there are any events you'd like us to support, please [create a feature request](https://git.new/request) on GitHub.

## Get started with webhooks

Over the last few months, we've been testing webhooks in production with our early beta customers and have sent over **74K webhook events**.

Today, we're excited to roll out our real-time webhooks feature to all [Business plan](https://dub.co/help/article/business-plan) users on Dub. To get started, [check out the docs](https://dub.co/docs/concepts/webhooks/introduction) and head over to your [workspace's webhooks settings tab](https://app.dub.co/settings/webhooks) to create your first webhook.

## Related articles

- [Introducing Dub Conversions](https://dub.co/blog/introducing-dub-conversions.md)
- [2024 Year in Review](https://dub.co/blog/2024.md)
- [Dub is now SOC 2 Type II Compliant](https://dub.co/blog/soc2.md)
- [Introducing 1-year Free .Link Domains On All Paid Plans](https://dub.co/blog/introducing-free-domains.md)

See [all blog posts](https://dub.co/blog.md).
