Skip to content

Create (or revive) a custom domain

Requires EDITOR.

projectId
required
string

Project (tenant) identifier. Row-level tenant isolation is enforced on every query.

Media typeapplication/json
object
hostname
required
string
>= 3 characters <= 255 characters
displayName
required
string
>= 1 characters <= 200 characters
dnsProvider
string | null
>= 1 characters <= 50 characters
onboardingMode
string
Allowed values: cloudflare_custom_hostname ns_delegation

Created domain.

Media typeapplication/json
object
domain
object
id
string
projectId
string
hostname
string
displayName
string
hostnameStatusValue
string | null
hostnameStatusMessage
string | null
hostnameStatusUpdatedAt
string | null
onboardingMode
string
Allowed values: cloudflare_custom_hostname ns_delegation
dnsProvider
string | null
delegationStatus
string | null
cloudflareJson
route53Json
createdAt
string
updatedAt
string
key
additional properties
any

Invalid domain params or hostname format.

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Not authenticated (401 via requireAuthenticated) or insufficient project role (403).

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Hostname already occupied/exists.

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}