Skip to main content

DMARC Check API

free
GET/v1/security/dmarc

Discovers current RFC9989 DMARC policy with the bounded DNS Tree Walk and returns published policy, effective inherited/testing policy, record provenance and DNS availability. Publishing a policy does not establish actual SPF/DKIM alignment or receiver disposition.

What It Does

Queries an exact policy first, otherwise walks ancestors with the eight-query deep-label shortcut through the TLD. Ordinary records do not stop organization discovery; psd=n/y/u and duplicate-discard rules control selection. Existing/nonexistent subdomains use sp/np inheritance where applicable; author-domain existence is checked separately from absence of _dmarc. Testing steps reject down to quarantine and quarantine to none. Missing p defaults to none, version is case-sensitive, and historic pct is compatibility metadata. Unknown DNS/existence evidence remains unavailable and cannot populate the normal policy cache.

Why It's Useful

Use source-scoped configuration evidence to investigate policy gaps and compare equivalent observations. This diagnostic does not prove actual message authentication, provider disposition or a complete sender inventory; review standards profile, coverage and limitations before acting.

Use Cases

Security Manager

Email Security Maturity Assessment

Evaluate organization's email security maturity by checking DMARC enforcement level. Track progression from p=none (monitoring) → p=quarantine → p=reject (full enforcement).

Benchmark email security posture and plan enforcement progression.

Email Administrator

DMARC Enforcement Preparation

Before moving from p=none to p=reject, verify SPF and DKIM alignment is working correctly by checking alignment mode and reviewing aggregate report URIs.

Safely progress toward full DMARC enforcement without blocking legitimate mail.

Security Analyst

Reporting Configuration Audit

Verify DMARC aggregate (rua) and forensic (ruf) reports are configured and sent to monitored addresses. Check report interval settings.

Ensure visibility into email authentication failures across the organization.

Domain Administrator

Subdomain Policy Review

Check if subdomain policy (sp=) is set independently from the main domain policy. Subdomains without their own DMARC record inherit the organizational domain policy.

Prevent subdomain spoofing by ensuring proper policy inheritance.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to check DMARC policy 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
standardstringRFC9989 current policy profile; historic pct is retained only as compatibility metadata
assessmentobjectComplete, provisional or unavailable policy evidence; not a message authentication result
dns_errorstring | nullPolicy, existence or reporting DNS uncertainty; not conclusive absence
discoveryobjectQueried names, eight-query bounds, organization/PSD selection and discarded/unavailable observations
dmarc.published_policystring | nullPublished p value at the selected policy record before inheritance/testing
dmarc.effective_policystring | nullRequested current handling after sp/np and testing; null when evidence cannot resolve it
domainstringThe queried domain
dmarc.foundbooleanWhether a DMARC record exists
dmarc.recordstringRaw DMARC record value
dmarc.policystringMain policy: none, quarantine, or reject
dmarc.subdomain_policystringSubdomain policy (sp= tag), defaults to main policy
dmarc.percentagenumberPercentage of messages the policy applies to (pct= tag, default 100)
dmarc.alignment.dkimstringDKIM alignment mode: r (relaxed) or s (strict)
dmarc.alignment.spfstringSPF alignment mode: r (relaxed) or s (strict)
dmarc.reporting.aggregate_urisarrayAggregate report destinations (rua= tag)
dmarc.reporting.forensic_urisarrayForensic report destinations (ruf= tag)
dmarc.reporting.interval_secondsnumberReport interval in seconds (ri= tag, default 86400)
dmarc.policy_descriptionstringHuman-readable policy description
dmarc.external_authorizationarrayPer-URI authorization results for rua/ruf destinations on third-party domains (RFC 7489 §7.1). Each entry: { uri, tag (rua/ruf), destination_domain, authorized (boolean), checked_record, query_error }. MSPs and agencies can use this to detect when a vendor revokes their delegation
dmarc.dnssec_validatedbooleanWhether the DMARC TXT lookup carried the DNSSEC AD bit
dmarc.dmarcbisobjectRFC9989 current tags (published May 2026; compatibility field name dmarcbis). { np: non-existent-subdomain policy, psd: Public Suffix Domain marker y/n/u, testing: binary testing flag, ready: true when the record uses only DMARCbis-compatible tags — no pct/ri/rf }
scorenumberSecurity score 0–100
gradestringLetter grade A–F
recommendationsarrayPolicy and configuration improvement recommendations

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/security/dmarc?domain=google.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/security/dmarc?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/security/dmarc?domain=google.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full DMARC Check guide

Learn the concepts, choose a practical workflow, and interpret the observations from DMARC Check 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 DMARC Check endpoint live in the playground.

DMARC Check API Reference | EdgeDNS