DEVELOPER API · v1
DNS Auth API
JSON over HTTPS at https://dnsauth.app/v1. Check SPF, DKIM, DMARC and MX for any domain, manage the domains you watch (rechecked daily at 06:00 UTC, with email alerts when they get worse), read their change history, and score email addresses. Everything is read-only public DNS: we never send mail to the domains you check and never probe SMTP servers. A plain-text summary for LLM agents is at /llms.txt.
Authentication
Every request needs an API key. Sign in, open the dashboard and create a key under “API keys”. The key (dnsa_…) is shown once; we store only its SHA-256 hash. Revoking a key from the dashboard takes effect immediately. Send it in either header:
curl -H "Authorization: Bearer $DNSAUTH_KEY" "https://dnsauth.app/v1/check?domain=example.com"
curl -H "X-API-Key: $DNSAUTH_KEY" "https://dnsauth.app/v1/check?domain=example.com"Watched domains are scoped to the key's owner (the email that created it): the same list you see on the dashboard. GET endpoints send Access-Control-Allow-Origin: *, so they work from a browser, but anything shipped to a browser exposes your key. POST and DELETE are meant for servers and do not allow cross-origin calls.
Rate limits
Free tier, per key: 60 requests per minute and 1,000 per UTC day. Every response carries:
X-RateLimit-Limit: 60 requests per minute
X-RateLimit-Remaining: 59 left in this minute
X-RateLimit-Reset: 42 seconds until the minute window resets
X-RateLimit-Daily-Limit: 1000
X-RateLimit-Daily-Remaining: 998Over a limit you get 429 with Retry-After (seconds) and error code rate_limited or daily_cap_reached. Usage is counted per key per day and shown on the dashboard.
Errors
All errors share one shape:
HTTP/1.1 401
{ "error": { "code": "missing_api_key", "message": "Send your key as `Authorization: Bearer <key>` or `X-API-Key: <key>`.", "status": 401 } }| 400 | missing_domain, invalid_domain, invalid_email, missing_email, invalid_json, invalid_limit |
| 401 | missing_api_key, invalid_api_key (unknown or revoked) |
| 402 | plan_limit (only if the paid gate is ever enabled) |
| 404 | not_found (domain not on your list, unknown endpoint) |
| 429 | rate_limited, daily_cap_reached |
| 502 | dns_failed (resolver timeout or SERVFAIL; not a score of zero) |
| 500 | internal_error |
Endpoints
GET/v1/check?domain={domain}
Live SPF, DKIM (common selectors), DMARC and MX check with a 0–100 score, letter grade, findings and detected providers. Same result as the website's report. Takes 1–5 seconds.
curl -s -H "Authorization: Bearer $DNSAUTH_KEY" "https://dnsauth.app/v1/check?domain=example.com"{
"schemaVersion": 1, "domain": "example.com", "checkedAt": "2026-10-21T03:42:04.260Z",
"score": 65, "grade": "C",
"categories": [ { "check": "spf", "status": "pass", "score": 30, "max": 30, "labelEn": "…", "findings": [ … ] }, … ],
"findings": [ { "severity": "warn", "titleEn": "…", "hintEn": "…" } ],
"records": { "spf": ["v=spf1 -all"], "dmarc": ["v=DMARC1; p=reject; …"], "mx": [ { "exchange": ".", "priority": 0 } ],
"dkim": [], "dkimSelectorsChecked": ["google", "selector1", …], "ns": [ … ] },
"limitations": [ { "en": "…" } ],
"providers": [ { "id": "cloudflare", "name": "Cloudflare", "as": "dns", "evidence": "NS …" } ]
}GET/v1/domains
Your watched domains with their latest daily result and last detected change.
curl -s -H "Authorization: Bearer $DNSAUTH_KEY" https://dnsauth.app/v1/domains{
"owner": "you@company.com", "count": 1,
"domains": [
{ "domain": "example.com", "score": 65, "grade": "C",
"status": { "spf": "pass", "dkim": "fail", "dmarc": "warn", "mx": "warn" },
"lastChecked": "2026-10-21T06:00:03.120Z",
"lastChange": { "at": "2026-10-20T06:00:02.000Z", "summary": "DMARC policy: reject → none" },
"enabled": true }
]
}POST/v1/domains
Watch a domain. Body: {"domain": "example.com", "email": "alerts@company.com"}; email is optional and defaults to the key owner. The first check runs immediately. Returns 201 when newly added, 200 if it was already on your list (the alert email is updated).
curl -s -X POST -H "Authorization: Bearer $DNSAUTH_KEY" -H "Content-Type: application/json" \
-d '{"domain":"example.com","email":"alerts@company.com"}' https://dnsauth.app/v1/domains{ "domain": "example.com", "created": true, "alertEmail": "alerts@company.com",
"watch": { "domain": "example.com", "score": 65, "grade": "C", "status": { … }, "lastChecked": "…", "lastChange": null, "enabled": true },
"checkFailed": false }GET/v1/domains/{domain}
One watched domain (same row shape as the list), or 404 not_found.
curl -s -H "Authorization: Bearer $DNSAUTH_KEY" https://dnsauth.app/v1/domains/example.comDELETE/v1/domains/{domain}
Stop watching a domain (removes you as its owner). Other people watching the same domain are not affected.
curl -s -X DELETE -H "Authorization: Bearer $DNSAUTH_KEY" https://dnsauth.app/v1/domains/example.com{ "domain": "example.com", "removed": true }GET/v1/history?domain={domain}&limit={n}
Stored daily snapshots (newest first) and the computed changes between consecutive snapshots. History exists for domains someone watches. limit: 1–730, default 50.
curl -s -H "Authorization: Bearer $DNSAUTH_KEY" "https://dnsauth.app/v1/history?domain=example.com&limit=5"{
"domain": "example.com", "total": 12, "limit": 5,
"snapshots": [ { "v": 1, "domain": "example.com", "checkedAt": "…", "source": "recheck", "score": 65, "grade": "C",
"categories": [ { "check": "spf", "status": "pass", "score": 30 }, … ],
"spf": "v=spf1 -all", "dmarc": "v=DMARC1; …", "dmarcPolicy": "reject", "mx": ["."], "dkimSelectors": [] } ],
"changes": [ { "checkedAt": "…", "previousCheckedAt": "…", "score": 65, "previousScore": 75,
"changes": [ { "check": "dmarc", "field": "dmarc-policy", "from": "reject", "to": "none",
"summaryEn": "DMARC policy: reject → none", "worse": true } ] } ]
}GET/v1/email/verify?email={address}
Scores an address 0–100 from syntax, the domain's mail routing (MX, else A/AAAA; null MX means “accepts no mail”), a disposable-domain list (open-source disposable-email-domains snapshot, CC0), free-mailbox providers and role addresses (admin@, info@, support@…). No SMTP probing: we never connect to the mail server, so a valid result means “can receive mail”, not “this mailbox exists”.
Scoring: start at 100; no MX and no A/AAAA or a null MX → 0; A/AAAA only −30; disposable −70; role −20; free provider −5. Verdict: valid ≥ 80, risky 50–79, invalid < 50, unknown when DNS failed.
curl -s -H "Authorization: Bearer $DNSAUTH_KEY" "https://dnsauth.app/v1/email/verify?email=info@mailinator.com"{
"email": "info@mailinator.com", "normalized": "info@mailinator.com", "domain": "mailinator.com",
"score": 10, "verdict": "invalid",
"reasons": [ "mailinator.com is a disposable (throwaway) email provider.", "\"info\" is a role address (shared inbox), not a person." ],
"flags": { "validFormat": true, "hasMx": true, "implicitMx": false, "nullMx": false, "noMailRoute": false,
"disposable": true, "freeProvider": false, "role": true, "subaddress": false, "dnsError": false },
"mx": ["mail.mailinator.com", …], "checkedAt": "…", "smtpProbe": false,
"sources": { "disposable": { "repo": "https://github.com/disposable-email-domains/disposable-email-domains", "commit": "…", "count": 9913, "license": "CC0-1.0" } }
}