Skip to main content
POST
Claim a sign-in domain
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Claims an email domain, unverified until its TXT record is found. Needs a plan with sign-in.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Optional. 1 to 255 visible characters. A retry with the same key, path and body returns the first answer (with Idempotent-Replayed: true) for 24 hours. The same key with another path or body is 422 idempotency_conflict.

Required string length: 1 - 255

Body

application/json
domain
string
required
Required string length: 3 - 253

Response

The claimed domain.

createdAt
string
required
domain
string
required
id
string
required
txtRecord
string
required

The DNS TXT record to publish on the domain to verify it.

verifiedAt
string | null
required