Skip to main content

Email Score API

pro
GET/v1/score/email

Combines 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

Security Manager

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.

Third-Party Risk

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.

Email Marketing

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.

IT Administrator

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

NameLocationTypeRequiredDescription
domainquerystringRequiredThe 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.

FieldTypeDescription
assessmentobjectComplete/provisional/unavailable status, coverage and observed/applicable weights; unknown evidence does not establish a passing definitive grade.
methodologyobjectFixed versioned10-component profile, including MX5 and MXTLS5 independent of probe configuration.
domainstringThe scored domain
scorenumberComposite email security score 0-100
gradestringLetter grade A-F based on score
gradeDescriptionstringHuman-readable grade description
breakdownobjectFixed10-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.
recordsobjectBoolean flags for SPF, DKIM, DMARC, and MX record presence
emailProviderobjectDetected email provider with { provider, type (enterprise/business/consumer/transactional/security), isSecurityGateway }
recommendationsarrayPrioritized improvement actions ranked by impact
componentCountnumberNumber of components analyzed
partialFailurebooleanTrue when at least one component probe rejected (network timeout, SERVFAIL, etc.)
failedComponentsarrayNames of components whose underlying DNS probe rejected (e.g. ["mta_sts", "dane"])
dns_errorsarrayPer-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_tlsobjectFixed5-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
curl --request GET 'https://api.edgedns.dev/v1/score/email?domain=google.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
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);
Python
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.

    Try This Endpoint

    Test the Email Score endpoint live in the playground.

    Email Score API Reference | EdgeDNS