Engineering

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.

Introducing real-time webhooks for Dub

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 event is triggered
  2. Send click events in real time to Segment for further processing
  3. Get notified on Slack when someone clicks on your link
  4. Build gamified referral programs with Dub Conversions – e.g. increment usage credits for the referrer when there is a new signup

The possibilities are endless.

To help you visualize how webhooks work (and how they're different from our REST API), here's a quick interactive example:

Link clicked
Twilio
Viator
Raycast
Perplexity
Framer
Vercel

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.

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.

Integrations with Segment, Zapier, Slack, and more

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

  • Segment: Send click, lead, and sale events to Segment for further processing
  • Zapier: Perform actions on Dub when events happen on Zapier (or vice versa)
  • Slack: Get notified on Slack when events happen on Dub
  • Tinybird: 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 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 via email.

Supported webhook events

Below is the list of all currently supported webhook events:

Event typeDescriptionPayload
link.createdA new link has been createdExample
link.updatedA link has been updatedExample
link.deletedA link has been deletedExample
link.clickedA link has been clicked onExample
lead.createdA new lead has been createdExample
sale.createdA new sale has been createdExample

If there are any events you'd like us to support, please create a feature 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 users on Dub. To get started, check out the docs and head over to your workspace's webhooks settings tab to create your first webhook.

Supercharge your marketing efforts

See why Dub is the link management platform of choice for modern marketing teams.