Skip to main content
POST
Add a domain

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>