Skip to main content
POST
Add a domain
Registers a domain and returns the TXT token. Publish it in DNS, then verify the domain. On Cloud this needs the Scale plan or above. Returns the TXT record token to publish. A domain is globally unique — one organization may own it. On Cloud this needs the Scale plan or above.
Availability: Cloud · Enterprise (self-hosted). Not available on the Community edition: a self-hosted deployment needs ENTERPRISE_ENABLED=true, otherwise the endpoint answers 403 with error.type: "enterprise_license_required".

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Body

application/json
domain
string
required
Example:

"acme.com"

Response

The domain, unverified

id
string
domain
string
verificationToken
string

Publish this as a DNS TXT record on the domain, then call verify.

verifiedAt
string<date-time> | null
createdAt
string<date-time>