tm_verify_domain_dns
Verifies a domain by checking its DNS TXT record against the verification token; returns 400 on mismatch to enable immediate failure in CI flows.
Instructions
Run the DNS-TXT verification check on a previously-added domain.
The server looks up the TXT record at
_trafficmorph-verify.<domain> and matches it against the
verificationToken issued by :func:tm_add_domain. On
match, the domain flips to verified=true and becomes
usable as a profile target.
On miss the server returns 400 (rather than a polling- style 200 "still pending"). That's deliberate — CI flows fail fast on misconfigured DNS instead of looping forever. The 400 error message includes the expected TXT name + token, so the AI host can read it back to the user verbatim for them to copy into their DNS provider.
Success response is the same VerifiedDomainResponse shape
as :func:tm_add_domain, now with verified=true,
verifiedAt populated, and verificationMethod="DNS"
(the server's stored value — uppercase per
DomainVerificationService.markVerified L112/L148/L183;
other documented values are "HTTP" and "ADMIN").
Pair with :func:tm_list_domains after a successful call to
confirm the flag flipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | Yes |