Email Score API
pro/v1/score/emailCombines email authentication and policy checks with measured MX STARTTLS and DANE certificate-association evidence. DNS publication and successful server validation are reported as separate signals.
What It Does
Uses shared validated SPF/DKIM/current RFC9989 DMARC, MTA-STS/TLS-RPT parsers, actual SVG source checks and native DANE/relay evidence. The fixed10-component profile totals100 points: SPF20, DKIM20, DMARC20, MX5, Provider5, MTA-STS10, TLS-RPT5, DANE5, BIMI5, MXTLS5. Without native relay evidence, MXTLS is unavailable and affects coverage rather than changing the methodology. Null MX makes receiving-only controls inapplicable while sending authentication remains assessed. Publishing keys/URLs does not prove signed mail, certificate trust, receiver display or deliverability.
Why It's Useful
Email security configuration directly impacts deliverability and phishing protection. A single composite score makes it easy to assess email security posture, compare domains, track improvements over time, and verify compliance with Google/Yahoo/Microsoft bulk sender requirements (2024-2025). Ideal for security dashboards, vendor risk assessments, and email deliverability troubleshooting.
Use Cases
Email Security Baseline
Establish email security baseline across all organization domains. Track progression from p=none to p=reject enforcement.
Track and report email security improvements to leadership with a single metric.
Vendor Risk Assessment
Evaluate vendor email security as part of due diligence process. Flag vendors with missing SPF, DKIM, or DMARC that could be impersonated for phishing.
Identify vendors with weak email security that could pose phishing risk to your organization.
Deliverability Troubleshooting
Diagnose why emails are landing in spam by checking email authentication score. Identify which components (SPF, DKIM, DMARC) are dragging down the overall score.
Improve email deliverability by addressing specific authentication gaps with prioritized recommendations.
Bulk Sender Compliance
Verify email authentication meets Google, Yahoo, and Microsoft requirements for domains sending 5,000+ emails/day before enforcement deadlines.
Prevent email rejection by ensuring compliance with bulk sender authentication mandates.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | The domain to score email security forExample: google.com |
Response Fields
Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.
| Field | Type | Description |
|---|---|---|
assessment | object | Complete/provisional/unavailable status, coverage and observed/applicable weights; unknown evidence does not establish a passing definitive grade. |
methodology | object | Fixed versioned10-component profile, including MX5 and MXTLS5 independent of probe configuration. |
domain | string | The scored domain |
score | number | Composite email security score 0-100 |
grade | string | Letter grade A-F based on score |
gradeDescription | string | Human-readable grade description |
breakdown | object | Fixed10-component product-policy profile totalling100: SPF20, DKIM20, DMARC20, MX5, Provider5, MTA-STS10, TLS-RPT5, DANE5, BIMI5, MXTLS5. Components expose observed/unavailable/not_applicable and reason; assessment reports the coverage denominator. |
records | object | Boolean flags for SPF, DKIM, DMARC, and MX record presence |
emailProvider | object | Detected email provider with { provider, type (enterprise/business/consumer/transactional/security), isSecurityGateway } |
recommendations | array | Prioritized improvement actions ranked by impact |
componentCount | number | Number of components analyzed |
partialFailure | boolean | True when at least one component probe rejected (network timeout, SERVFAIL, etc.) |
failedComponents | array | Names of components whose underlying DNS probe rejected (e.g. ["mta_sts", "dane"]) |
dns_errors | array | Per-component DNS failure reasons (e.g. "mta_sts: SERVFAIL"). Populated alongside failedComponents. When non-empty, the response is NOT cached — a transient blip would otherwise freeze a misleading low score in KV for the full 7-day TTL. |
breakdown.mx_tls | object | Fixed5-point native MX relay TLS component. Missing measurements are unavailable, not N/A; receiving-only applicability follows observed mail role. |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the pro plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/score/email?domain=google.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/score/email?domain=google.com",
{
"method": "GET",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
if (!response.ok) {
throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/score/email?domain=google.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full Email Score guide
Learn the concepts, choose a practical workflow, and interpret the observations from Email Score before acting on them. Run supported checks via MCP or through REST.
Read the guide →Related Endpoints
External References
Learn more about the standards and protocols behind this endpoint.