Arguments

slug
string

Name of the domain. If provided, the existing domain will be updated with the new domain. Eg. acme.com.

type
enum<string>
default: "redirect"

The type of redirect to use for this domain.

target
string | null

The page your users will get redirected to when they visit your domain.

expiredUrl
string | null

Redirect users to a specific URL when any link under this domain has expired.

archived
boolean
default: false

Whether to archive this domain. false will unarchive a previously archived domain.

placeholder
string | null
default: "https://dub.co/help/article/what-is-dub"

Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.

Response

id
string
required

The unique identifier of the domain.

slug
string
required

The domain name.

verified
boolean
default: falserequired

Whether the domain is verified.

primary
boolean
default: falserequired

Whether the domain is the primary domain for the workspace.

archived
boolean
default: falserequired

Whether the domain is archived.

placeholder
string
default: "https://dub.co/help/article/what-is-dub"required

Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.

expiredUrl
string | null
required

The URL to redirect to when a link under this domain has expired.

target
string | null
required

The page your users will get redirected to when they visit your domain.

type
enum<string>
required

The type of redirect to use for this domain. Available values are redirect and rewrite.

clicks
number
default: 0required

The number of clicks on the domain.