DKIM Check API - Look Up DomainKeys DNS Records
Queries DNS for {selector}._domainkey.{domain} TXT records. If no selector is given, tries common fallbacks: default, google, s1, k1. Returns the raw DKIM record, the selector that matched, the key type (rsa by default), and an approximate public-key bit length parsed from the base64-encoded p= tag.
Code examples
curl -X POST https://api.botoi.com/v1/dns-security/dkim-check \
-H "Content-Type: application/json" \
-d '{"domain":"stripe.com","selector":"google"}'When to use this API
Verify DKIM before sending from a new domain
After adding the DKIM TXT record in your DNS provider, call this endpoint to confirm propagation. Saves the "sent 10,000 mails before realizing DKIM was missing" problem.
Audit email authentication posture across domains
For each domain your company owns, check has_dkim and the key length. Keys under 1024 bits are considered weak and should be rotated to 2048-bit RSA or ed25519.
Diagnose deliverability complaints
When a customer reports "emails landing in spam", pull DKIM + SPF + DMARC for their domain in one glance. Missing or misconfigured DKIM is one of the top three causes.
Frequently asked questions
What if I don't know the selector?
How is key_type detected?
Is public_key_length exact?
Can a domain have multiple selectors?
Does DKIM alone guarantee deliverability?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.