Domain

Properties

What the object holds, what is a snapshot, and which fields are the ones to act on.

status is the gatedns is the mail statenameservers are per domain
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

id · namestring

The identifier and the domain.

statusstring

pending_nameservers · active.

nameserversstring[]

The pair to set at the registrar.

dnsobject

{ mxOk, spfOk, dkimOk, dmarcOk, checkedAt }.

importedobject

{ found, added, at }.

mailHostsarray

[{ host, selector, dns, enabledAt }].

registrarstring

Who registered it.

createdAtstring

When it was attached.

dataobject

Everything the platform returned.

It is a snapshot

Only check() re-reads the zone

status and dns are what was last recorded. Listing or getting a domain returns that record — a domain that became active an hour ago still reads as pending until something checks.

status is a gate, not a label

While it is pending_nameservers, nothing in the zone serves: records can be written and mail can be enabled, and none of it is live. Showing a green state before that is the single most misleading thing an interface can do here.

The four witnesses

FieldTrue when the zone holds
mxOkthe records that make mail arrive
spfOkthe record saying who may send
dkimOkthe key that signs
dmarcOkthe policy

mailHosts is per host

The apex and each subdomain appear separately, each with its own selector and its own four witnesses — because each is configured on its own.

Never hardcode the nameservers

They are stored per domain and handed back here. A pair written into your own code works until the day it is changed.