Email Security Posture (Composite) API
free/v1/security/email-postureReturns source-scoped SPF, DKIM and current RFC9989 DMARC configuration evidence with an observed diagnostic average and explicit completeness. A fulfilled analyzer carrying DNS/operational errors remains incomplete, suppresses the ordinary grade and cannot enter the normal cache.
What It Does
Reuses shared analyzers and effective inherited/testing DMARC policy, with a separate full RFC9989 organizational-domain tree walk and legacy PSL display context. Reports per-component ok/error from actual evidence, not promise fulfillment. Unknown observations are excluded from the observed average and remain in completeness/coverage. Source TTLs bound caching; error-bearing or bounded/incomplete analyses are not cached as missing controls. Static publication does not prove message signing, alignment, receiver disposition or local DNSSEC chain validation.
Why It's Useful
A complete email-security review previously required six sequential API calls — fine for SDK consumers but disastrous for security-review workflows. The composite endpoint collapses that into a single screenshot-able artefact with a prioritised to-do list. Ideal for dashboards, vendor risk reviews, and pre-launch checklists.
Use Cases
Security review in a single screenshot
Prepare a domain's email-security posture for a quarterly security review meeting. Need critical → info ranked recommendations on one page, with deep links to the individual endpoints for follow-up.
One API call replaces six. The ranked_recommendations array is directly screenshot-able for review documents.
Vendor email-security due diligence
Vet a SaaS vendor's email posture before signing — check authentication, transport security readiness via current RFC9989, and DNSSEC validation in one request.
Score + ranked recommendations support a quick vendor risk decision without manual record inspection.
Monitoring dashboard for portfolio domains
Run a daily cron across customer domains to track email-security posture over time. Need a single endpoint per domain that exposes both the score and the underlying analyzer state for change detection.
One request per domain instead of six, with full component payloads for diffing across runs.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | The domain to assess. Subdomains are supported — the DMARCbis tree walk traverses ancestors looking for the organisational policy.Example: cloudflare.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 |
|---|---|---|
domain | string | The queried domain |
organizational_domain_psl | string | Organisational domain per RFC 7489 (current PSL-based resolution) |
organizational_domain_tree_walk | object | RFC9989 DNS Tree Walk result — surfaced alongside the PSL result for current RFC9989 discovery. Fields: queried_domain, organizational_domain, walked_steps, walked_names, dmarc_record, dnssec_validated, error. |
overall_score | number | Weighted composite score 0–100 (DMARC 0.45 / SPF 0.30 / DKIM 0.25) |
overall_grade | string | Letter grade A+ / A / B / C / D / F |
dnssec_validated | boolean | Aggregate DNSSEC posture — true only when every successful analyzer's underlying lookup carried the AD bit |
ranked_recommendations | array | Severity-sorted action list. Each entry: severity (critical/high/medium/low/info), title (one line), detail (two sentences with the fix), endpoint_ref (which individual endpoint to drill into for context). Critical-first ordering means the top item is the screenshot-able headline. |
components | object | Per-component analyzer payloads. { spf: ComponentSummary, dkim: ComponentSummary, dmarc: ComponentSummary } where ComponentSummary = { ok: boolean, error: string|null, data: <full analyzer result>|null }. Clients can deep-link into the matching endpoint for details. |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/security/email-posture?domain=cloudflare.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/security/email-posture?domain=cloudflare.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/security/email-posture?domain=cloudflare.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full Email Security Posture (Composite) guide
Learn the concepts, choose a practical workflow, and interpret the observations from Email Security Posture (Composite) 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 Security Posture (Composite) endpoint live in the playground.