POST
/
domains

Authorizations

Authorization
string
headerrequired

Default authentication mechanism

Body

application/json
slug
string
required

Name of the 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

201 - application/json
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-dubrequired

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.

createdAt
string
required

The date the domain was created.

updatedAt
string
required

The date the domain was last updated.

registeredDomain
object | null

The registered domain record.