{"uid":"cap_m-uv-MjXMNZYvRqANf94q","slug":"dkim-public-key-lookup-19297331","name":"DKIM Public Key Lookup","description":"Fetch and parse a DKIM public-key record at <selector>._domainkey.<domain> (RFC 6376). Returns the parsed key params (algorithm, length, flags) so you can verify rotation status or key strength. Caller must know the selector - use email-deliverability if you don't.","url":"https://agent402.tools/api/dkim-lookup","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name (also accepts email/url/host)"},"selector":{"type":"string","description":"DKIM selector, e.g. \"default\", \"google\", \"selector1\""}}},"responseSchema":{"type":"json","example":{"raw":"v=DKIM1; k=rsa; p=MIIBIj...","flags":[],"domain":"google.com","keyType":"rsa","version":"DKIM1","fullName":"20221208._domainkey.google.com","selector":"20221208","warnings":[],"hasRecord":true,"publicKey":{"bits":2048,"base64":"MIIBIj...","revoked":false},"serviceType":"*","hashAlgorithms":[]}},"example":{"request":{"domain":"example.com","selector":"google"},"response":{"raw":"v=DKIM1; p=","flags":[],"domain":"example.com","keyType":"rsa","version":"DKIM1","fullName":"google._domainkey.example.com","selector":"google","warnings":["Public key is empty — DKIM selector is revoked (rotated out)"],"hasRecord":true,"publicKey":{"bits":null,"base64":null,"revoked":true},"serviceType":"*","hashAlgorithms":[]}},"exampleRequest":{"domain":"example.com","selector":"google"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yK9ARYOmQ6YwbNSeWXU83","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and parses the DKIM TXT record at <selector>._domainkey.<domain>, returning key algorithm, length, and flags for rotation/strength verification.","exampleAgentPrompt":"Can you look up the DKIM public key for example.com using the selector 'google' and tell me the algorithm, key length, and any flags set?","exampleUseCases":null,"resultDescription":"Returns parsed DKIM record parameters including the public key algorithm (e.g. RSA), key bit length (e.g. 2048), flags, and other key metadata from the DNS TXT record at <selector>._domainkey.<domain>.","failureModes":["DKIM record not found — selector or domain does not exist in DNS","Invalid domain format — domain cannot be resolved","Selector not specified or incorrect — wrong selector name returns no record","DNS lookup timeout — transient network error","Malformed DKIM TXT record — cannot be parsed"],"whenToPreferThis":"Use this endpoint when you need to programmatically inspect a DKIM public key record for a known selector — for example, auditing key strength, confirming rotation after a key change, or verifying a domain's email authentication setup. Prefer this over manual DNS tools when you need structured parsed output (algorithm, key length, flags) rather than a raw TXT string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:00:43.438Z","isFirstParty":false}