Domain security & deliverability audit (graded)
POST /v1/domain-auditHand over a domain and get one graded, model-backed security & email-deliverability audit: SPF, DMARC, DKIM and MX (why your mail lands in spam), the web security headers, and the TLS certificate - every finding from a live probe, with an overall letter grade, a downloadable checks appendix, and a prioritized, specific list of fixes. Send POST /v1/domain-audit with the required field domain and pay $0.60 per call over x402 with USDC on an EVM chain or MPP. It returns a JSON object with report, domain, grade, composite, sources and 2 more.
USDC (x402/MPP) or card (Stripe). Not cached. Takes up to 3 minutes to answer: send the paid call with "Prefer: respond-async" to get a job link at once and collect the answer from it (on x402 the payment settles only on a delivered result), or with "Prefer: wait=180" and keep the connection open for at least 210 seconds, because a client that disconnects first loses the answer. A paid call with neither header is answered 400 before any payment is taken.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | yes | The domain to audit, e.g. example.com (also accepts a URL or host). Also accepted as host, hostname, site. |
format | string (one of: markdown, json) | no | Response shape (default markdown report). |
Example request
curl -i -X POST https://agent402.tools/v1/domain-audit \
-H "Content-Type: application/json" \
-d '{"domain":"example.com"}'Without payment this returns HTTP 402 Payment Required with the exact price for domain-audit; any x402 v2 or MPP client pays it and retries.
Watch a call get paid
POST /v1/domain-audit$0.60 USDCPAYMENT-SIGNATUREon 11 chains200 OKAgent402-ReceiptEd25519Example response
{
"report": "# Domain Security Audit: example.com\n\n**Overall grade: B** (82/100)\n\n## Overall grade\n...",
"domain": "example.com",
"grade": "B",
"composite": 82,
"sources": [],
"tables": [
{
"name": "email-checks",
"label": "Email authentication checks",
"columns": [
"Check",
"Status",
"Detail"
],
"rows": [
[
"spf",
"pass",
"SPF record present, 1 DNS lookup, ~all qualifier"
]
]
}
],
"meta": {
"tier": "domain-audit",
"domain": "example.com",
"grade": "B",
"composite": 82,
"email_score": 90,
"header_score": 70,
"tls_days_remaining": 204,
"synthesis_model": "anthropic/claude-opus-5"
}
}| Field | Type | Always present | In the example |
|---|---|---|---|
report | string | yes | # Domain Security Audit: example.com **Overall grade: B** (82/100) ## Overa... |
domain | string | yes | example.com |
grade | string | yes | B |
composite | number | yes | 82 |
sources | array | yes | 0 items in the example |
tables | array of objects | yes | 1 item in the example |
meta | object | yes | 8 fields: tier, domain, grade, composite, email_score, header_score and 2 more |
From an MCP client
catalog.call {
"slug": "domain-audit",
"params": {
"domain": "example.com"
}
}The hosted connector at https://agent402.tools/mcp needs a payment for domain-audit; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.14.0.
Errors and behavior
domainis required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement runs after the tool and only on a successful response.
- Wallet-only: this tool runs a model, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - Model-backed: the answer is generated by a model, so the same input can produce a different result.
- Long-running: payment settles after the work finishes, so x402 is offered on EVM chains only and MPP on Base, Celo or card; Tempo is not offered.
- Usually answers in about 90 seconds and takes up to 180 seconds. Send the paid call with
Prefer: respond-asyncto get202and a job link at once, then pollGET /api/jobs/{id}for its stage, progress and ETA until it has the answer; payment still settles only when the answer is ready, except a Tempo transfer sent before the call, which is repaid after on-chain proof if the run fails. To wait on the connection instead, sendPrefer: wait=180and keep it open that long. A paid call with neither header is answered400before any payment is taken. - A
GETorHEADto /v1/domain-audit returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB and a streamed response are not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.60" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/v1/domain-audit", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"domain": "example.com"
}),
});Related tools
Domain security audit - PRO (attack surface + stack)
The deeper tier (model-backed): everything in the standard audit plus the attack surface from Certificate Transparency.
Email deliverability check
End-to-end email-auth report for a domain: SPF + DMARC + DKIM (probes common selectors automatically) + MX records +.
Company due-diligence dossier (grounded, cited)
Hand over a ticker and get one due-diligence dossier back.
Company due-diligence dossier - MAX (exhaustive)
The exhaustive due-diligence tier (model-backed): more filings, a full year of Form 4 insider activity, wider web.
Fund portfolio report (13F, grounded)
Hand over an institutional manager (a fund name like "Berkshire Hathaway", a ticker, or a SEC CIK) and get one cited.
Fund portfolio report - MAX (deep)
The deep tier (model-backed): the full holdings table, wider quarter-over-quarter change analysis, more grounded web.