tm_verify_domain_http
Verify domain ownership via HTTP: fetch a verification token from the domain's .well-known URL and match it to confirm the domain. Alternative to DNS verification for users who can serve a static file.
Instructions
Run the HTTP-token verification check on a previously-added domain.
The server fetches
https://<domain>/.well-known/trafficmorph-verify.txt
(falling back to plain HTTP if HTTPS fails) and matches the
file body against the verificationToken issued by
:func:tm_add_domain — the same token DNS verification
uses; there's only one token per domain. On match, the
domain flips to verified=true.
Alternative to :func:tm_verify_domain_dns for users who can
serve a static file at the target host but can't edit DNS.
Same fail-fast contract: misses return 400 with the expected URL + token in the message, not a "still pending" 200. The error message is constructed to be readable directly to the user (no JSON parsing required by the AI host).
Success response: VerifiedDomainResponse with
verified=true, verifiedAt populated, and
verificationMethod="HTTP" (uppercase — matches the
server's stored value, see :func:tm_verify_domain_dns for
the full set of method tokens).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | Yes |