Domain

verify() · verifications()

domain.verify({ service, code, name }) → Promise<Verification>

Poses the TXT a service asks for, at the right name, with the right prefix — none of which you should have to compose.

prefix addeda wrong prefix is refusedverified stays null
Using Python?

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

await domain.verify({ service: "google", code: "abc123" });
// { service: "google",
//   record: { type: "TXT", name: "example.com", content: "google-site-verification=abc123" },
//   verified: null, next: "Go back to the service and start its check." }

await domain.verifications();
// { services: [...], verifications: [{ service, label, content }] }
domain.verify(service="google", code="abc123")
# {"service": "google",
#  "record": {"type": "TXT", "name": "example.com", "content": "google-site-verification=abc123"},
#  "verified": None, "next": "Go back to the service and start its check."}

domain.verifications()
# {"services": [...], "verifications": [{"service", "label", "content"}]}
servicestringrequired

The service asking. other takes any name/value pair.

codestringrequired

What the service gave you, with or without its prefix.

namestringoptional

A name under the zone, when the service asks for one.

Pasted with another service's prefix, it is refused

A code pasted bare gets its prefix. A code carrying someone else's is answered with verification_code_mismatch rather than rewritten — rewriting it would quietly post one service's proof under another's name.

verified stays null on purpose

We pose the record; the service decides when it checks, and it does not tell us. A true written here would be a guess.