Skip to main content
Dub

Event types

List of supported webhook event types and their payloads
2 min read

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

webhook-payload.json
  • 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#

Here are the webhook events that are available for Dub Partners:

Event TypeDescription
partner.enrolledOccurs whenever a partner is enrolled in your program (either their application was approved, they accepted your invite, or via the API).
partner.application_submittedOccurs whenever a partner submits an application to your program.
partner.mergedOccurs when two partner accounts are merged.
lead.createdOccurs whenever a lead is created.
sale.createdOccurs whenever a sale is created.
commission.createdOccurs whenever a commission is created for a partner (clawbacks will also trigger this event with a negative amount).
discount_code.createdOccurs whenever a discount code is created for a partner.
discount_code.deletedOccurs whenever a discount code for a partner is deleted.

Here are the webhook events that are available for Dub Links:

Event TypeDescription
link.createdOccurs whenever a link is created.
link.updatedOccurs whenever a link is updated.
link.deletedOccurs whenever a link is deleted.
link.clickedOccurs whenever a link is clicked.