create
POST /v1/domains. DomainCreate is { name?, kind, receive? } — connect a BYOD domain by name, or mint the org’s system subdomain. Idempotent on the name.
quote
POST /v1/domains/quote, scope billing:read. Read-only: it checks availability and one-year pricing
and neither reserves the name nor moves credits. A DomainQuote is:
purchase
POST /v1/domains/purchase, scope billing:write. Buys the name for one year with the organization’s
credits: the server rechecks availability and price, refuses premium names, refuses a live price above
max_price_micro_usd, and debits the balance before registering. No card is taken. receive asks for
inbound email on the new domain. The result is a Domain with kind: "purchased"; while registration
is still processing it comes back as pending_dns (HTTP 202) and the platform finishes it within
about 10 minutes, so poll with get. A rejected registration refunds the debit. The SDK sends an
Idempotency-Key for you.
insufficient_credits (402), validation_failed (400) for an unavailable name or a price over
the ceiling, name_conflict (409) for a name the organization already connected as its own domain, state_conflict (409). Full contract: Buy a domain.
list
GET /v1/domains, cursor-paginated.
get
GET /v1/domains/{id} — including the readiness tracks (dns_status, …).
verify
POST /v1/domains/{id}/verify. Re-runnable; each readiness track advances on its own, and the domain comes back as the answer. Run it after publishing the DNS records.
records
GET /v1/domains/{id}/records — the DNS records to publish. Always allowed, on every kind: reading the zone is never the dangerous half.
delete
DELETE /v1/domains/{id}.