Domains
Retrieve a list of domains
Retrieve a list of domains associated with the authenticated workspace.
GET
/
domains
Authorizations
Authorization
string
headerrequiredDefault authentication mechanism
Query Parameters
workspaceId
string
requiredThe ID of the workspace.
projectSlug
string
deprecatedThe slug of the project. This field is deprecated – use workspaceId
instead.
Response
200 - application/json
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-dubrequiredProvide 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 options:
redirect
, rewrite
clicks
number
default: 0requiredThe number of clicks on the domain.
Was this page helpful?