Skip to main content
Dub

link.created

1 min read

Occurs whenever a link is created.

Response body parameters

All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.

idstring#
The event ID.
eventstring#
The event type that triggered the webhook (e.g., link.created).
createdAtstring#
ISO 8601 timestamp when the webhook event was created.
dataobject#
Event-specific data containing detailed information about the event. The data object for the link.created event contains the following parameters:
Show object parameters
idstring#

Unique identifier for the link.

domainstring#

The short link domain (e.g. dub.sh).

keystring#

The short link path/slug.

urlstring#

The destination URL.

qrCodestring#

URL to the QR code image for this link.

userIdstring#

ID of the user who created the link.

workspaceIdstring#

ID of the workspace the link belongs to.

clicksnumber#

Total click count for the link.

leadsnumber#

Total lead count (when conversion tracking is enabled).

salesnumber#

Total sale count (when conversion tracking is enabled).

saleAmountnumber#

Total sale amount in cents.

createdAtstring#

ISO 8601 timestamp when the link was created.

updatedAtstring#

ISO 8601 timestamp when the link was last updated.