Dub tools
The 10 Dub operations your product runs on your customer's account through Connect. All of them use the same endpoint, POST /api/tools/{tool}/execute.
- List linksGETLists the short links of the workspace with destination, tags, folder, UTM parameters and the counts of clicks, leads and sales. For the next page, send the id of the last link as startingAfter; a page shorter than pageSize is the last one.
- Get linkGETReturns one short link with its counts of clicks, leads and sales. Send domain and key together, such as dub.sh and abc123 for dub.sh/abc123, or send linkId.
- Create linkPOSTShortens a URL and returns the short link in shortLink, with its id. Without domain it uses the primary domain of the workspace, or dub.sh when there is none, and without key Dub picks a random 7-character slug.
- Update linkPATCHChanges a short link; only the fields sent change. A new domain or key changes the short link itself, and archived true hides the link from List links.
- Get analyticsGETReturns clicks, leads or sales of the workspace, a domain, a link, a tag or a folder, as a total, a time series or a ranking chosen by groupBy. Without start and interval it covers the last 24 hours, and it needs the Pro plan or higher.
- List eventsGETLists click, lead or sale events one by one, with time, link and click details and, for leads and sales, the customer; it needs the Business plan or higher. Without start and interval it covers the last 24 hours, and a page shorter than limit is the last one.
- List domainsGETLists the custom domains of the workspace, whose slug goes in the domain argument of the link tools. Pages start at 1, and a page shorter than pageSize is the last one.
- List tagsGETLists the tags of the workspace with their ids and colors. Pages start at 1, and a page shorter than pageSize is the last one.
- Create tagPOSTCreates a tag to organize links, such as a campaign or a client. The response has the id that goes in tagIds.
- List foldersGETLists the link folders of the workspace with their ids. Pages start at 1, and a page shorter than pageSize is the last one.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
