api.domains

get()

api.domains.get(id) → Promise<Domain>

Un domaine, par son identifiant ou par son nom — get("example.com") fonctionne.

id or namefree404 if not attached
Using Python?

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

const domain = await api.domains.get("example.com");
const same   = await api.domains.get(domain.id);
domain = api.domains.get("example.com")
same = api.domains.get(domain.id)
Prendre le nom est la partie utile

Un domaine est identifié par son nom partout ailleurs — dans le message d'un client, dans un ticket de support, dans un fichier de configuration.

C'est une lecture, pas un chèque

status et dns sont ce qui a été enregistré pour la dernière fois. status Bouge, appelle contrôle().

Les dossiers et le courrier sont accompagnés

const domain = await api.domains.get("example.com");

await domain.records.list();
await domain.mail.status();
domain = api.domains.get("example.com")

domain.records.list()
domain.mail.status()

Erreurs

Un nom qui n'est pas joint à ce compte répond 404 — y compris un nom attaché à quelqu'un d'autre, qui est la même réponse dans le but.