Skip to content

Add a delegated or purchased domain

POST
/v1/admin/orgs/{org_id}/domains
org_id
required
string
object
domain
required
string
mode
required
string
Allowed values: ns_delegated purchased

Connected; returns the nameserver records for delegated setup.

object
domain
string
mode
string
Allowed values: shared ns_delegated manual purchased
verification_status
string
zone_id
string
provisioning_phase
string
provisioning_error
string
delegation_ns
Array<object>

A DNS record the customer must add for domain onboarding.

object
name
string
type
string
Example
TXT
value
string
priority
integer
nullable
ttl
integer
records
Array<object>

A DNS record the customer must add for domain onboarding.

object
name
string
type
string
Example
TXT
value
string
priority
integer
nullable
ttl
integer
instruction
string

Invalid request.

The canonical error envelope. error is a stable machine code.

object
error
required

Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).

string
Example
forbidden
message

Human-readable detail (never leaks internals).

string
Example
missing required scope

Missing or invalid credential.

The canonical error envelope. error is a stable machine code.

object
error
required

Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).

string
Example
forbidden
message

Human-readable detail (never leaks internals).

string
Example
missing required scope