Get an API key
Host

domains.list()

host.domains.list() → Promise<Domain[]>

The customer domains served by this host, re-read from the platform.

GETfreefresher than the field
Using Python?

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

const domains = await host.domains.list();
// [{ name: "www.example.com", status, certificate }]
domains = host.domains.list()
# [{"name": "www.example.com", "status", "certificate"}]

Against host.domains_

domains_domains.list()
IsWhat the object was built withA fresh read
Costsnothingone request
Use itto render immediatelyafter attaching, or to follow a certificate
After attaching, read it rather than the field

The object was built before the attachment. The field is a snapshot; this is the state.

Each name has its own certificate

A name just attached is pending for a moment while the one attached yesterday is active — which is why the state is per domain rather than per host.

An empty list

The host serves only at its own address. That is a complete, working state — a custom domain is an addition, not a requirement.