← Tools Reference

Dub

Dub integration (Marketing, Developer Tools). Imported from open-connector.

API key15 toolshttps://api.dub.co
POST
dub_create_link
Create a short link in the authenticated Dub workspace.

/links

38 parameters
ParamTypeRequiredDescription
urlstringrequiredThe destination URL of the short link.
domainstringoptionalThe short-link domain without protocol.
keystringoptionalThe short-link slug.
keyLengthintegeroptionalThe length of the generated short-link slug.
externalIdstringoptional
tenantIdstringoptional
programIdstringoptional
partnerIdstringoptional
prefixstringoptionalThe prefix used for randomly generated slugs.
trackConversionbooleanoptionalWhether Dub should track conversions for this link.
archivedbooleanoptionalWhether the link should be archived.
tagIdsstringoptionalThe tag IDs assigned to the link.
tagNamesstringoptionalThe tag names assigned to the link.
folderIdstringoptional
commentsstringoptional
expiresAtstringoptional
expiredUrlstringoptional
passwordstringoptional
proxybooleanoptionalWhether the link uses Dub custom link previews.
titlestringoptional
descriptionstringoptional
imagestringoptional
videostringoptional
rewritebooleanoptionalWhether the link uses link cloaking.
iosstringoptional
androidstringoptional
geoobjectoptional
doIndexbooleanoptionalWhether search engines may index the short link.
utm_sourcestringoptional
utm_mediumstringoptional
utm_campaignstringoptional
utm_termstringoptional
utm_contentstringoptional
refstringoptional
webhookIdsarrayoptional
testVariantsarrayoptional
testStartedAtstringoptional
testCompletedAtstringoptional
GET
dub_list_links
List short links in the authenticated Dub workspace.

/links

13 parameters
ParamTypeRequiredDescription
domainstringoptionalOnly return links for this domain.
tagIdsstringoptionalOnly return links with these tag IDs.
tagNamesstringoptionalOnly return links with these tag names.
folderIdstringoptionalOnly return links in this folder.
searchstringoptionalSearch against link slugs and destination URLs.
userIdstringoptionalOnly return links created by this Dub user ID.
tenantIdstringoptionalOnly return links for this tenant ID.
showArchivedbooleanoptionalWhether archived links should be included.
sortBystringoptionalThe field used to sort links.
sortOrderstringoptionalThe sort direction.
endingBeforestringoptionalReturn links before this cursor.
startingAfterstringoptionalReturn links after this cursor.
pageSizeintegeroptionalThe number of links to return.
GET
dub_retrieve_link
Retrieve a Dub short link by ID or by supported lookup fields.

/links/info

4 parameters
ParamTypeRequiredDescription
linkIdstringoptionalThe Dub link ID to retrieve.
domainstringoptionalThe short-link domain used with key lookup.
keystringoptionalThe short-link slug used with domain lookup.
externalIdstringoptionalThe external ID for the link. Prefix with ext_ when required by Dub.
PATCH
dub_update_link
Update a short link in the authenticated Dub workspace.

/links/{linkId}

39 parameters
ParamTypeRequiredDescription
linkIdstringrequiredThe Dub link ID to update.
urlstringoptionalThe destination URL of the short link.
domainstringoptionalThe short-link domain without protocol.
keystringoptionalThe short-link slug.
keyLengthintegeroptionalThe length of the generated short-link slug.
externalIdstringoptional
tenantIdstringoptional
programIdstringoptional
partnerIdstringoptional
prefixstringoptionalThe prefix used for randomly generated slugs.
trackConversionbooleanoptionalWhether Dub should track conversions for this link.
archivedbooleanoptionalWhether the link should be archived.
tagIdsstringoptionalThe tag IDs assigned to the link.
tagNamesstringoptionalThe tag names assigned to the link.
folderIdstringoptional
commentsstringoptional
expiresAtstringoptional
expiredUrlstringoptional
passwordstringoptional
proxybooleanoptionalWhether the link uses Dub custom link previews.
titlestringoptional
descriptionstringoptional
imagestringoptional
videostringoptional
rewritebooleanoptionalWhether the link uses link cloaking.
iosstringoptional
androidstringoptional
geoobjectoptional
doIndexbooleanoptionalWhether search engines may index the short link.
utm_sourcestringoptional
utm_mediumstringoptional
utm_campaignstringoptional
utm_termstringoptional
utm_contentstringoptional
refstringoptional
webhookIdsarrayoptional
testVariantsarrayoptional
testStartedAtstringoptional
testCompletedAtstringoptional
DELETE
dub_delete_link
Delete a short link from the authenticated Dub workspace.

/links/{linkId}

1 parameter
ParamTypeRequiredDescription
linkIdstringrequiredThe Dub link ID to delete.
GET
dub_count_links
Retrieve the number of matching links in the authenticated Dub workspace.

/links/count

8 parameters
ParamTypeRequiredDescription
domainstringoptionalOnly count links for this domain.
tagIdsstringoptionalOnly count links with these tag IDs.
tagNamesstringoptionalOnly count links with these tag names.
folderIdstringoptionalOnly count links in this folder.
searchstringoptionalSearch against link slugs and destination URLs.
userIdstringoptionalOnly count links created by this Dub user ID.
tenantIdstringoptionalOnly count links for this tenant ID.
showArchivedbooleanoptionalWhether archived links should be included.
GET
dub_list_tags
List tags in the authenticated Dub workspace.

/tags

2 parameters
ParamTypeRequiredDescription
pageintegeroptionalThe page number to retrieve.
pageSizeintegeroptionalThe number of tags to return.
POST
dub_create_tag
Create a tag in the authenticated Dub workspace.

/tags

2 parameters
ParamTypeRequiredDescription
namestringrequiredThe tag name.
colorstringoptionalThe Dub tag color.
PATCH
dub_update_tag
Update a tag in the authenticated Dub workspace.

/tags/{id}

3 parameters
ParamTypeRequiredDescription
idstringrequiredThe Dub tag ID to update.
namestringoptionalThe updated tag name.
colorstringoptionalThe Dub tag color.
DELETE
dub_delete_tag
Delete a tag from the authenticated Dub workspace.

/tags/{id}

1 parameter
ParamTypeRequiredDescription
idstringrequiredThe Dub tag ID to delete.
GET
dub_list_folders
List folders in the authenticated Dub workspace.

/folders

2 parameters
ParamTypeRequiredDescription
pageintegeroptionalThe page number to retrieve.
pageSizeintegeroptionalThe number of folders to return.
POST
dub_create_folder
Create a folder in the authenticated Dub workspace.

/folders

1 parameter
ParamTypeRequiredDescription
namestringoptionalThe folder name.
PATCH
dub_update_folder
Update a folder in the authenticated Dub workspace.

/folders/{id}

2 parameters
ParamTypeRequiredDescription
idstringrequiredThe Dub folder ID to update.
namestringoptionalThe updated folder name.
DELETE
dub_delete_folder
Delete a folder from the authenticated Dub workspace.

/folders/{id}

1 parameter
ParamTypeRequiredDescription
idstringrequiredThe Dub folder ID to delete.
GET
dub_retrieve_analytics
Retrieve analytics for a Dub link, domain, or workspace.

/analytics

33 parameters
ParamTypeRequiredDescription
eventstringoptionalThe event metric to retrieve from Dub analytics.
groupBystringoptionalThe dimension used to group Dub analytics.
domainstringoptionalThe domain filter for analytics.
keystringoptionalThe link slug used with a domain filter.
linkIdstringoptionalThe Dub link ID filter.
externalIdstringoptionalThe external link ID filter.
tenantIdstringoptionalThe tenant ID filter.
tagIdstringoptionalThe tag ID filter.
folderIdstringoptionalThe folder ID filter.
partnerTagIdstringoptionalThe partner tag ID filter.
groupIdstringoptionalThe partner group ID filter.
partnerIdstringoptionalThe partner ID filter.
customerIdstringoptionalThe customer ID filter.
intervalstringoptionalThe analytics date range shortcut.
startstringoptionalThe start timestamp for the analytics range.
endstringoptionalThe end timestamp for the analytics range.
timezonestringoptionalThe IANA time zone used to align timeseries buckets.
countrystringoptionalThe country filter using ISO 3166-1 alpha-2 codes.
citystringoptionalThe city filter.
regionstringoptionalThe ISO 3166-2 region code filter.
continentstringoptionalThe continent filter.
devicestringoptionalThe device filter.
browserstringoptionalThe browser filter.
osstringoptionalThe operating system filter.
triggerstringoptionalThe trigger filter.
refererstringoptionalThe referer hostname filter.
refererUrlstringoptionalThe full referer URL filter.
urlstringoptionalThe destination URL filter.
utm_sourcestringoptionalThe UTM source filter.
utm_mediumstringoptionalThe UTM medium filter.
utm_campaignstringoptionalThe UTM campaign filter.
utm_termstringoptionalThe UTM term filter.
utm_contentstringoptionalThe UTM content filter.