Network
Grade the email authentication of any domain
Send a domain or an email address. The API reads the SPF record and counts its DNS lookups, the DMARC policy, DKIM keys on common selectors and on the selectors you pass, BIMI, the MTA-STS record and policy file, TLS-RPT and MX. It returns a score out of 100, a grade from A to F, and the fixes in order of importance, each with the DNS record to publish when one is needed.
What one lookup returns
The fields this product reads from the response. The full schema is in the API reference.
| Field | Type | Meaning |
|---|---|---|
| grade | string | A, B, C, D or F. |
| score | integer | Score from 0 to 100. |
| mx.provider | string or null | Mail provider recognized from the MX hosts. |
| spf.record | string or null | SPF record of the domain. |
| spf.dns_lookups | integer | DNS lookups the record needs, limit 10. |
| dmarc.policy | string or null | none, quarantine or reject. |
| dkim.keys | array | DKIM keys found: selector, key type and size, testing, revoked. |
| bimi.record | string or null | BIMI record at default._bimi. |
| mta_sts.mode | string or null | enforce, testing or none, from the policy file. |
| tls_rpt.record | string or null | TLS-RPT record at _smtp._tls. |
| fixes | array | Fixes in order: code, severity, area, message and the record to publish. |
Live example
The response below was returned by the API for this request.
curl https://api.qelka.com/v1/email/auth \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"domain":"github.com"}'| domain | string · RequiredA sending domain, or an email address whose domain is checked. |
|---|---|
| selectors | array · OptionalUp to 10 extra DKIM selectors to check besides the common ones. |
| fresh | boolean · Default falsetrue skips the result cache and runs the lookup again. |
Response
{
"id": "lkp_01M8CGD47HPCSHCN5SVATD9ZRX",
"object": "email_auth",
"input": "github.com",
"domain": "github.com",
"grade": "B",
"score": 89,
"mx": {
"status": "NOERROR",
"records": [
{
"priority": 0,
"exchange": "github-com.mail.protection.outlook.com"
}
],
"null_mx": false,
"provider": "Microsoft 365"
},
"spf": {
"record": "v=spf1 ip4:192.30.252.0/22 ip4:172.170.10.240/28 ip4:40.78.162.192/28 ip4:172.170.3.48/28 include:spf.protection.outlook.com include:_netblocks.google.com include:_netblocks2.google.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net include:mktomail.com include:sendgrid.net ip4:62.253.227.114 ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ~all",
"records_found": 1,
"valid": true,
"all": "softfail",
"mechanisms": [
{
"qualifier": "+",
"type": "ip4",
"value": "192.30.252.0/22"
},
{
"qualifier": "+",
"type": "ip4",
"value": "172.170.10.240/28"
},
{
"qualifier": "+",
"type": "ip4",
"value": "40.78.162.192/28"
},
{
"qualifier": "+",
"type": "ip4",
"value": "172.170.3.48/28"
},
{
"qualifier": "+",
"type": "include",
"value": "spf.protection.outlook.com"
},
{
"qualifier": "+",
"type": "include",
"value": "_netblocks.google.com"
},
{
"qualifier": "+",
"type": "include",
"value": "_netblocks2.google.com"
},
{
"qualifier": "+",
"type": "include",
"value": "mail.zendesk.com"
},
{
"qualifier": "+",
"type": "include",
"value": "_spf.salesforce.com"
},
{
"qualifier": "+",
"type": "include",
"value": "servers.mcsv.net"
},
{
"qualifier": "+",
"type": "include",
"value": "mktomail.com"
},
{
"qualifier": "+",
"type": "include",
"value": "sendgrid.net"
},
{
"qualifier": "+",
"type": "ip4",
"value": "62.253.227.114"
},
{
"qualifier": "+",
"type": "ip4",
"value": "166.78.69.169"
},
{
"qualifier": "+",
"type": "ip4",
"value": "166.78.69.170"
},
{
"qualifier": "+",
"type": "ip4",
"value": "166.78.71.131"
},
{
"qualifier": "~",
"type": "all",
"value": null
}
],
"dns_lookups": 10,
"lookup_limit": 10,
"issues": []
},
"dmarc": {
"record": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:dmarc@github.com; ruf=mailto:dmarc@github.com; fo=1",
"valid": true,
"policy": "quarantine",
"subdomain_policy": "reject",
"pct": 100,
"rua": [
"mailto:dmarc@github.com"
],
"ruf": [
"mailto:dmarc@github.com"
],
"adkim": "r",
"aspf": "r",
"issues": []
},
"dkim": {
"selectors_checked": [
"google",
"selector1",
"selector2",
"k1",
"k2",
"k3",
"s1",
"s2",
"default",
"dkim",
"mail",
"smtp",
"mandrill",
"mxvault",
"zmail",
"zoho",
"protonmail",
"protonmail2",
"protonmail3",
"fm1",
"fm2",
"fm3",
"sig1",
"mailjet",
"krs",
"mailo",
"cm",
"everlytickey1"
],
"keys": [
{
"selector": "google",
"valid": true,
"key_type": "rsa",
"key_bits": 2048,
"testing": false,
"revoked": false,
"issues": []
},
{
"selector": "selector1",
"valid": true,
"key_type": "rsa",
"key_bits": 1024,
"testing": false,
"revoked": false,
"issues": [
"short_key"
]
},
{
"selector": "k1",
"valid": true,
"key_type": "rsa",
"key_bits": 1024,
"testing": false,
"revoked": false,
"issues": [
"short_key"
]
},
{
"selector": "k2",
"valid": true,
"key_type": "rsa",
"key_bits": 2048,
"testing": false,
"revoked": false,
"issues": []
},
{
"selector": "k3",
"valid": true,
"key_type": "rsa",
"key_bits": 2048,
"testing": false,
"revoked": false,
"issues": []
},
{
"selector": "s1",
"valid": true,
"key_type": "rsa",
"key_bits": 2048,
"testing": false,
"revoked": false,
"issues": []
},
{
"selector": "s2",
"valid": true,
"key_type": "rsa",
"key_bits": 2048,
"testing": false,
"revoked": false,
"issues": []
},
{
"selector": "mailo",
"valid": true,
"key_type": "rsa",
"key_bits": 1024,
"testing": false,
"revoked": false,
"issues": [
"short_key"
]
},
{
"selector": "cm",
"valid": true,
"key_type": "rsa",
"key_bits": 1024,
"testing": false,
"revoked": false,
"issues": [
"short_key"
]
}
]
},
"bimi": {
"record": null,
"valid": false,
"logo_url": null,
"authority_url": null,
"issues": []
},
"mta_sts": {
"record": null,
"id": null,
"policy_status": null,
"mode": null,
"max_age": null,
"mx": [],
"issues": []
},
"tls_rpt": {
"record": null,
"valid": false,
"rua": [],
"issues": []
},
"fixes": [
{
"code": "rotate_dkim_key",
"severity": "info",
"area": "dkim",
"message": "These DKIM keys are shorter than 2048-bit RSA: selector1._domainkey.github.com (1024-bit), k1._domainkey.github.com (1024-bit), mailo._domainkey.github.com (1024-bit), cm._domainkey.github.com (1024-bit). Rotate to 2048-bit keys from your sending service.",
"record": null
},
{
"code": "add_mta_sts",
"severity": "info",
"area": "mta_sts",
"message": "Without MTA-STS, a network attacker can strip TLS from mail sent to github.com. Serve https://mta-sts.github.com/.well-known/mta-sts.txt with the lines version: STSv1, mode: testing, mx: github-com.mail.protection.outlook.com, max_age: 604800, then publish this record. Switch to mode: enforce once TLS reports are clean.",
"record": {
"name": "_mta-sts.github.com",
"type": "TXT",
"value": "v=STSv1; id=202611261803"
}
},
{
"code": "add_tls_rpt",
"severity": "info",
"area": "tls_rpt",
"message": "Publish a TLS-RPT record so sending servers report TLS failures when delivering to github.com.",
"record": {
"name": "_smtp._tls.github.com",
"type": "TXT",
"value": "v=TLSRPTv1; rua=mailto:<tls-reports@github.com>"
}
},
{
"code": "add_bimi",
"severity": "info",
"area": "bimi",
"message": "DMARC is enforced, so github.com can show its logo next to messages with BIMI. Publish the logo as an SVG Tiny PS file over HTTPS; Gmail and Apple Mail also need a Verified Mark Certificate or Common Mark Certificate (a=).",
"record": {
"name": "default._bimi.github.com",
"type": "TXT",
"value": "v=BIMI1; l=<https://github.com/logo.svg>; a=<https://github.com/mark-certificate.pem>"
}
}
],
"checked_at": "2026-11-26T18:03:10.448Z",
"credits_used": 1,
"cached": false
}Use cases
Onboard senders
Check a customer's domain before they send through your platform, and show the records they must add.
Monitor your domains
Run every domain you own each day and alert when a grade drops, for example after an SPF include breaks the 10-lookup limit.
Qualify prospects
Find the domains with no DMARC or a p=none policy among a list of companies.
Price
1 credit per lookup, from the same balance as every other product.
- Starter
- $2.90 per 1,000 lookups
- Growth
- $1.98 per 1,000 lookups
- Scale
- $1.50 per 1,000 lookups
- Business
- $1.07 per 1,000 lookups
The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.
See pricingData source and freshness
Queried live from the source at request time. Results are cached for 1 hours; send "fresh": true to query again.
- DNS records and MTA-STS policy of the domain checked
License: Facts published by each domain, read at request time · Refresh: per request
Frequently asked questions
How is the grade computed?
Which DKIM selectors are checked?
What are the values in angle brackets?
Is mail actually sent?
What costs a credit?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time