AACFlow

Dub

Link management with Dub

Usage Instructions

Create, manage, and track short links with Dub. Supports custom domains, UTM parameters, link analytics, and more.

Tools

Create a new short link with Dub. Supports custom domains, slugs, UTM parameters, and more.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
urlstringYesNo description
domainstringNoNo description
keystringNoNo description
externalIdstringNoNo description
tagIdsstringNoNo description
commentsstringNoNo description
expiresAtstringNoNo description
passwordstringNoNo description
rewritebooleanNoNo description
archivedbooleanNoNo description
titlestringNoNo description
descriptionstringNoNo description
utm_sourcestringNoNo description
utm_mediumstringNoNo description
utm_campaignstringNoNo description
utm_termstringNoNo description
utm_contentstringNoNo description

Output

ParameterTypeDescription
idstringUnique ID of the created link
domainstringDomain of the short link
keystringSlug of the short link
urlstringDestination URL
shortLinkstringFull short link URL
qrCodestringQR code URL for the short link
archivedbooleanWhether the link is archived
externalIdstringExternal ID
titlestringOG title
descriptionstringOG description
tagsjsonTags assigned to the link (id, name, color)
clicksnumberNumber of clicks
leadsnumberNumber of leads
salesnumberNumber of sales
saleAmountnumberTotal sale amount in cents
lastClickedstringLast clicked timestamp
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
utm_sourcestringutm_source output from the tool
utm_mediumstringutm_medium output from the tool
utm_campaignstringutm_campaign output from the tool
utm_termstringutm_term output from the tool
utm_contentstringutm_content output from the tool

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.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
urlstringYesNo description
domainstringNoNo description
keystringNoNo description
externalIdstringNoNo description
tagIdsstringNoNo description
commentsstringNoNo description
expiresAtstringNoNo description
passwordstringNoNo description
rewritebooleanNoNo description
archivedbooleanNoNo description
titlestringNoNo description
descriptionstringNoNo description
utm_sourcestringNoNo description
utm_mediumstringNoNo description
utm_campaignstringNoNo description
utm_termstringNoNo description
utm_contentstringNoNo description

Output

ParameterTypeDescription
idstringUnique ID of the link
domainstringDomain of the short link
keystringSlug of the short link
urlstringDestination URL
shortLinkstringFull short link URL
qrCodestringQR code URL for the short link
archivedbooleanWhether the link is archived
externalIdstringExternal ID
titlestringOG title
descriptionstringOG description
tagsjsonTags assigned to the link (id, name, color)
clicksnumberNumber of clicks
leadsnumberNumber of leads
salesnumberNumber of sales
saleAmountnumberTotal sale amount in cents
lastClickedstringLast clicked timestamp
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
utm_sourcestringutm_source output from the tool
utm_mediumstringutm_medium output from the tool
utm_campaignstringutm_campaign output from the tool
utm_termstringutm_term output from the tool
utm_contentstringutm_content output from the tool

Retrieve information about a short link by its link ID, external ID, or domain + key combination.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
linkIdstringNoNo description
externalIdstringNoNo description
domainstringNoNo description
keystringNoNo description

Output

ParameterTypeDescription
idstringUnique ID of the link
domainstringDomain of the short link
keystringSlug of the short link
urlstringDestination URL
shortLinkstringFull short link URL
qrCodestringQR code URL for the short link
archivedbooleanWhether the link is archived
externalIdstringExternal ID
titlestringOG title
descriptionstringOG description
tagsjsonTags assigned to the link (id, name, color)
clicksnumberNumber of clicks
leadsnumberNumber of leads
salesnumberNumber of sales
saleAmountnumberTotal sale amount in cents
lastClickedstringLast clicked timestamp
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
utm_sourcestringUTM source parameter
utm_mediumstringUTM medium parameter
utm_campaignstringUTM campaign parameter
utm_termstringUTM term parameter
utm_contentstringUTM content parameter

Update an existing short link. You can modify the destination URL, slug, metadata, UTM parameters, and more.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
linkIdstringYesNo description
urlstringNoNo description
domainstringNoNo description
keystringNoNo description
titlestringNoNo description
descriptionstringNoNo description
externalIdstringNoNo description
tagIdsstringNoNo description
commentsstringNoNo description
expiresAtstringNoNo description
passwordstringNoNo description
rewritebooleanNoNo description
archivedbooleanNoNo description
utm_sourcestringNoNo description
utm_mediumstringNoNo description
utm_campaignstringNoNo description
utm_termstringNoNo description
utm_contentstringNoNo description

Output

ParameterTypeDescription
idstringUnique ID of the updated link
domainstringDomain of the short link
keystringSlug of the short link
urlstringDestination URL
shortLinkstringFull short link URL
qrCodestringQR code URL for the short link
archivedbooleanWhether the link is archived
externalIdstringExternal ID
titlestringOG title
descriptionstringOG description
tagsjsonTags assigned to the link (id, name, color)
clicksnumberNumber of clicks
leadsnumberNumber of leads
salesnumberNumber of sales
saleAmountnumberTotal sale amount in cents
lastClickedstringLast clicked timestamp
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
utm_sourcestringutm_source output from the tool
utm_mediumstringutm_medium output from the tool
utm_campaignstringutm_campaign output from the tool
utm_termstringutm_term output from the tool
utm_contentstringutm_content output from the tool

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
linkIdstringYesNo description

Output

ParameterTypeDescription
idstringID of the deleted link

Retrieve a paginated list of short links for the authenticated workspace. Supports filtering by domain, search query, tags, and sorting.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
domainstringNoNo description
searchstringNoNo description
tagIdsstringNoNo description
showArchivedbooleanNoNo description
sortBystringNoNo description
sortOrderstringNoNo description
pagenumberNoNo description
pageSizenumberNoNo description

Output

ParameterTypeDescription
linksjsonArray of link objects (id, domain, key, url, shortLink, clicks, tags, createdAt)
countnumberNumber of links returned

dub_get_analytics

Retrieve analytics for links including clicks, leads, and sales. Supports filtering by link, time range, and grouping by various dimensions.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
eventstringNoNo description
groupBystringNoGroup results by: count (default), timeseries, countries, cities, devices, browsers, os, referers, top_links, top_urls
linkIdstringNoNo description
externalIdstringNoNo description
domainstringNoNo description
intervalstringNoNo description
startstringNoNo description
endstringNoNo description
countrystringNoNo description
timezonestringNoNo description

Output

ParameterTypeDescription
clicksnumberTotal number of clicks
leadsnumberTotal number of leads
salesnumberTotal number of sales
saleAmountnumberTotal sale amount in cents
datajsonGrouped analytics data (timeseries, countries, devices, etc.)

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started