Docs menu

DKIM record validator

Check a DKIM record: look it up by selector or paste it, and see its key type, size, flags and problems.

POST /v1/dkim-record

Price
Free; any API key works and nothing is charged.
Cache
Never cached; every call runs again.
MCP tool
validate_dkim_record

Run it in the browser

Request body

Request body fields
NameTypeDescription
recordstring or nullA DKIM record to check, pasted as text.
domainstring or nullOr a domain, with its selector, to look the record up.
selectorstring or nullThe DKIM selector, such as google or s1.

Response

Response fields
NameTypeDescription
tool (required)string
target (required)string
status (required)"ok" | "partial" | "error"
fetched_atstring
cachedboolean
credits_usedintegerCredits this call took from your balance. 0 for free tools, for a replay of an earlier call, and for a free check run on the website without signing in
summary (required)string
scoreinteger or null
findingsarray of object
credits_remaining (required)integerYour balance after this call. It can be below zero after a refund; free tools still work then
data (required)objectThis tool's result
data.source (required)"pasted" | "dns"
data.name (required)string or null
data.record (required)string or null
data.query_status (required)string or null
data.version (required)string or null
data.key_type (required)string or null
data.key_bits (required)integer or null
data.revoked (required)boolean
data.testing (required)boolean
data.strict (required)boolean
data.hash_algorithms (required)array of string or null
data.service_types (required)array of string

Errors

  • 400 Invalid domain, URL or parameter, a TLD this tool can't check, or an X-Request-Id already used for another call (`invalid_domain`, `invalid_url`, `invalid_request`, `unsupported_tld`)
  • 401 Missing, unknown or revoked API key, or one whose creator is no longer a member of the account (`unauthorized`)
  • 403 Account suspended, the key's creator is over the plan's seats, or an anonymous check without a valid proof-of-work or for a tool that needs an account, or bulk checks before a first purchase (`account_suspended`, `plan_limit`, `challenge_required`, `sign_in_required`, `bulk_locked`)
  • 429 Too many requests, today's free checks are used up, or too many website scans at once; wait for the number of seconds in the Retry-After header (`rate_limited`, `free_limit_reached`, `too_many_jobs`). Not charged
  • 500 Unexpected error (`internal_error`)

Example

curl

curl
curl -X POST "https://api.dnssuper.com/v1/dkim-record" \
  -H "Authorization: Bearer $DNSSUPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'

Python

Python (httpx)
import os

import httpx

client = httpx.Client(
    base_url="https://api.dnssuper.com",
    headers={"Authorization": f"Bearer {os.environ['DNSSUPER_API_KEY']}"},
    timeout=60,
)
response = client.post("/v1/dkim-record", json={
    "domain": "example.com",
})
response.raise_for_status()
result = response.json()
print(result["summary"], result["credits_used"])

TypeScript

TypeScript (fetch)
const response = await fetch("https://api.dnssuper.com/v1/dkim-record", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.DNSSUPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"domain":"example.com"}),
});
if (!response.ok) throw new Error((await response.json()).error.message);
const result = await response.json();
console.log(result.summary, result.credits_used);
Example response
Example response
{
  "tool": "dkim-checker",
  "target": "",
  "status": "ok",
  "fetched_at": "2026-11-14T10:00:00Z",
  "cached": false,
  "credits_used": 0,
  "summary": "The DKIM record at s2048._domainkey.example.com is valid (a 2048-bit RSA key).",
  "findings": [
    {
      "id": "dkim_record.valid",
      "severity": "pass",
      "title": "The DKIM record is valid",
      "detail": "",
      "fix": "Nothing to do."
    }
  ],
  "data": {
    "source": "dns",
    "name": "s2048._domainkey.example.com",
    "record": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApTGFY+knX9gV8lx+vLMRL+4h2Vef2XWTq1+IUtMY/ZRRoGQG31IR2Yz+FkzYaolUU2JMq2NbUzELco8z3Ef/iPmN4wITl7/cTQnwbn15fwvgeP59ICpyWpGtr/aq83ISRBjKEfTlRub1tRG/VVps0QaD4GjVBMGVPLYKKvlT9gG2Bzd86bLTkPOJcVHhjzqytVoqVW09guYc9W6J2XDfTES0ocQ7/p4zDR6/wmR4su5wwcy8C5GpeyKNERmR6w9DvH0c1ySrjtpvBMjDu4LTT4ruHJCHLqbWA1M31nFAi30vasgB0q6JZcEcOyM1ByetpiuqLfWNTLBm+RWQe4BguQIDAQAB",
    "query_status": "ok",
    "version": "DKIM1",
    "key_type": "rsa",
    "key_bits": 2048,
    "revoked": false,
    "testing": false,
    "strict": false,
    "service_types": [
      "*"
    ]
  },
  "credits_remaining": 498
}

MCP

MCP tool call
{
  "tool": "validate_dkim_record",
  "arguments": {
    "domain": "example.com"
  }
}
Compact MCP output
The DKIM record at s2048._domainkey.example.com is valid (a 2048-bit RSA key).
Looked up: s2048._domainkey.example.com
Key: 2048-bit RSA
1 check passed
Free | checked 2026-11-14 10:00 UTC