Domains
dub.domains.list
Retrieve a list of domains associated with the authenticated workspace.
Arguments
No arguments.
Response
id
string
requiredThe unique identifier of the domain.
slug
string
requiredThe domain name.
verified
boolean
default: falserequiredWhether the domain is verified.
primary
boolean
default: falserequiredWhether the domain is the primary domain for the workspace.
archived
boolean
default: falserequiredWhether the domain is archived.
placeholder
string
default: "https://dub.co/help/article/what-is-dub"requiredProvide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
expiredUrl
string | null
requiredThe URL to redirect to when a link under this domain has expired.
target
string | null
requiredThe page your users will get redirected to when they visit your domain.
type
enum<string>
requiredThe type of redirect to use for this domain. Available values are redirect
and rewrite
.
clicks
number
default: 0requiredThe number of clicks on the domain.