Use Dub to create and manage short links with custom domains, slugs, UTM parameters, and link-preview titles and descriptions. Upsert Link creates or updates a link by destination URL; lookup and deletion also support the identifiers documented for each action.
List actions support filtering, sorting, and pagination. Analytics report clicks, leads, and sales, with grouping by time, geography, device, browser, referrer, and other supported dimensions.
Use the block
Create, update, delete, or list short links with custom domains, slugs, link-preview titles and descriptions, and UTM parameters. Retrieve click, lead, and sales analytics.
Actions
Dub Create Link
Create a new short link with Dub. Supports custom domains, slugs, UTM parameters, and more.
Dub Upsert Link
Create or update a short link by its URL. If a link with the same URL already exists, update it. Otherwise, create a new link.
Dub Get Link
Retrieve information about a short link by its link ID, external ID, or domain + key combination.
Dub Update Link
Update an existing short link's destination URL, domain, slug, link-preview title and description, UTM parameters, and other supported settings.
Dub Delete Link
Delete a short link by its link ID or external ID (prefixed with ext_).
Dub List Links
Retrieve a paginated list of short links for the authenticated workspace. Supports filtering by domain, search query, tags, and sorting.
Dub Count Links
Retrieve the number of short links for the authenticated workspace, optionally filtered and grouped by domain, tag, user, or folder.
Dub Bulk Create Links
Create up to 100 short links in a single request. Returns the created links alongside any per-link errors.
Dub Bulk Update Links
Apply the same set of field updates to up to 100 links at once, selected by link IDs or external IDs.
Dub Bulk Delete Links
Delete up to 100 short links in a single request by their link IDs. Non-existing IDs are ignored.
Dub Get Analytics
Retrieve analytics for links including clicks, leads, and sales. Supports filtering by link, time range, and grouping by various dimensions.
Dub List Events
Retrieve a paginated stream of individual click, lead, and sale events for links, with filtering by link, time range, and location.
Dub Get QR Code
Generate a customizable QR code (PNG) for a short link, with control over size, error correction, colors, and margin.
Dub List Domains
Retrieve the custom domains registered in the workspace, so links can be created against the right domain.
Dub List Tags
Retrieve the tags defined in the workspace, so the right tag IDs can be assigned to links.
Dub Create Tag
Create a new tag in the workspace for organizing and filtering short links.
Dub List Folders
Retrieve the folders defined in the workspace, so the right folder ID can be used to organize links.