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:
- Create a new link on Dub when a Zapier event is triggered
- Send click events in real time to Segment for further processing
- Get notified on Slack when someone clicks on your link
- 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:
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 type | Description | Payload |
---|---|---|
link.created | A new link has been created | Example |
link.updated | A link has been updated | Example |
link.deleted | A link has been deleted | Example |
link.clicked | A link has been clicked on | Example |
lead.created | A new lead has been created | Example |
sale.created | A new sale has been created | Example |
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.