Workspace
Workspaces is the defacto way of organizing your links and working with your team on Dub. You can think of a Dub workspace like a workspace on Slack or Discord – it’s a shared space where you can invite your team members to collaborate on links. When interacting with Dub’s API, you’ll also need to create a workspace API key to authenticate your requests.Workspace model
Workspace model
Links
Links are the bread and butter of Dub. You can shorten any URL to a Dub link, which you can then share with your audience. Links can be created, updated, and deleted via the Dub API or the Dub dashboard.Link model
Link model
The domain of the short link. If not provided, the primary domain for the
workspace will be used (or dub.sh if the workspace has no domains).
The ID of the link in your database. If set, it can be used to identify the
link in future API requests (must be prefixed with
ext_ when passed as a
query parameter). This key is unique across your workspace.The ID of the tenant that created the link inside your system. If set, it can
be used to fetch all links for a tenant.
The title of the short link generated via api.dub.co/metatags. Will be used
for Custom Social Media Cards if proxy is true.
The description of the short link generated via api.dub.co/metatags. Will be
used for Custom Social Media Cards if proxy is true.
The image of the short link generated via api.dub.co/metatags. Will be used
for Custom Social Media Cards if proxy is true.
The custom link preview video (og:video). Will be used for Custom Social Media
Cards if
proxy is true. Learn more: https://d.to/ogThe full URL of the QR code for the short link (e.g.
https://api.dub.co/qr?url=https://d.to/try).Domains
On Dub, you can add custom domains to create branded short links for better brand recognition. You can also set a primary domain for it to be used as the default domain for new links (both via the API and the dashboard).Domain model
Domain model
Provide context to your teammates in the link creation modal by showing them
an example of a link to be shortened.