SPF, DKIM & DMARC Record Linter & Generator API
Lint existing SPF/DMARC strings and generate clean, RFC-compliant DNS TXT records.
Audit MX, SPF 10-lookup limits, DMARC, DKIM, BIMI, and MTA-STS with a 0–100 score. Audit domain email deliverability via DNS-over-HTTPS: validate MX, SPF lookup limits (<10), DMARC policy, DKIM selectors, BIMI, and MTA-STS.
{
"ok": true,
"data": {
"domain": "cloudflare.com",
"score": 95,
"grade": "A",
"checks": {
"mx": {
"status": "pass",
"score": 20,
"max_score": 20,
"records": [
"10 isaac.mx.cloudflare.net",
"20 linda.mx.cloudflare.net"
],
"issues": [],
"fix": null
},
"spf": {
"status": "pass",
"score": 25,
"max_score": 25,
"records": [
"v=spf1 ip4:199.15.212.0/22 include:_spf.google.com -all"
],
"issues": [],
"fix": null
},
"dmarc": {
"status": "pass",
"score": 25,
"max_score": 25,
"records": [
"v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc@cloudflare.com"
],
"issues": [],
"fix": null
},
"dkim": {
"status": "pass",
"score": 20,
"max_score": 20,
"records": [
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."
],
"issues": [],
"fix": null,
"found_selectors": [
"cf2024-1"
],
"checked_selectors": [
"cf2024-1"
]
},
"mta_sts": {
"status": "warn",
"score": 5,
"max_score": 10,
"records": [
"v=STSv1; id=20260101T000000Z"
],
"issues": [],
"fix": null
}
},
"fixes": []
},
"meta": {
"request_id": "req_edns_01",
"ms": 42
}
}
curl -X POST "https://api.tinplate.dev/v1/email-dns" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TINPLATE_KEY" \
-d '{"domain":"cloudflare.com","dkim_selectors":["cf2024-1"],"records":{"mx":["10 isaac.mx.cloudflare.net","20 linda.mx.cloudflare.net"],"txt":["v=spf1 ip4:199.15.212.0/22 include:_spf.google.com -all"],"dmarc":["v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc@cloudflare.com"],"dkim":{"cf2024-1":["v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A"]},"mta_sts":["v=STSv1; id=20260101T000000Z"]}}'import { TinplateClient } from "@tinplate/sdk";
const tinplate = new TinplateClient({
apiKey: process.env.TINPLATE_API_KEY!,
});
const { data, meta } = await tinplate.call("/v1/email-dns", {
"domain": "cloudflare.com",
"dkim_selectors": [
"cf2024-1"
],
"records": {
"mx": [
"10 isaac.mx.cloudflare.net",
"20 linda.mx.cloudflare.net"
],
"txt": [
"v=spf1 ip4:199.15.212.0/22 include:_spf.google.com -all"
],
"dmarc": [
"v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc@cloudflare.com"
],
"dkim": {
"cf2024-1": [
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A"
]
},
"mta_sts": [
"v=STSv1; id=20260101T000000Z"
]
}
});
console.log(`[${meta.ms} ms]`, data);import requests
response = requests.post(
"https://api.tinplate.dev/v1/email-dns",
headers={
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TINPLATE_KEY",
},
json={
"domain": "cloudflare.com",
"dkim_selectors": [
"cf2024-1"
],
"records": {
"mx": [
"10 isaac.mx.cloudflare.net",
"20 linda.mx.cloudflare.net"
],
"txt": [
"v=spf1 ip4:199.15.212.0/22 include:_spf.google.com -all"
],
"dmarc": [
"v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc@cloudflare.com"
],
"dkim": {
"cf2024-1": [
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A"
]
},
"mta_sts": [
"v=STSv1; id=20260101T000000Z"
]
}
}
)
print(response.json())const response = await fetch("https://api.tinplate.dev/v1/email-dns", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TINPLATE_KEY",
},
body: JSON.stringify({
"domain": "cloudflare.com",
"dkim_selectors": [
"cf2024-1"
],
"records": {
"mx": [
"10 isaac.mx.cloudflare.net",
"20 linda.mx.cloudflare.net"
],
"txt": [
"v=spf1 ip4:199.15.212.0/22 include:_spf.google.com -all"
],
"dmarc": [
"v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc@cloudflare.com"
],
"dkim": {
"cf2024-1": [
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A"
]
},
"mta_sts": [
"v=STSv1; id=20260101T000000Z"
]
}
}),
});
const result = await response.json();
console.log(result);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tinplate_email_dns",
"arguments": {
"domain": "cloudflare.com",
"dkim_selectors": [
"cf2024-1"
],
"records": {
"mx": [
"10 isaac.mx.cloudflare.net",
"20 linda.mx.cloudflare.net"
],
"txt": [
"v=spf1 ip4:199.15.212.0/22 include:_spf.google.com -all"
],
"dmarc": [
"v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc@cloudflare.com"
],
"dkim": {
"cf2024-1": [
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A"
]
},
"mta_sts": [
"v=STSv1; id=20260101T000000Z"
]
}
}
}
}POST /v1/email-dns)| Parameter | Type & Constraints | Description |
|---|---|---|
domain required |
stringminLen: 3, maxLen: 253 |
Domain name or email address to audit (e.g. 'tinplate.dev' or 'hello@tinplate.dev'). |
dkim_selectors optional |
string[] |
Optional custom DKIM selectors to probe in addition to common defaults. |
records optional |
object |
Optional pre-fetched DNS records for offline auditing without live DNS-over-HTTPS queries. |
data Object Fields (200 OK)| Field | Type | Description |
|---|---|---|
domain |
string |
Field 'domain' |
score |
integer |
Field 'score' |
grade |
"A" | "B" | "C" | "D" | "F" |
Field 'grade' |
checks |
object |
Field 'checks' |
fixes |
object[] |
Field 'fixes' |
Release: v1.0.39 ·
Verified: 16 November 2026 ·
Portfolio Median: 0.318 ms in-Worker V8 compute (add 15–65 ms HTTPS RTT) ·
See Full Portfolio Benchmarks →
Direct Polar All-Access Keys unlock all 42 APIs (49 endpoints), /v1/pipeline, and /mcp on api.tinplate.dev:
Pro ($29/mo · 120 req/min · 100k/mo · 128 KB) or Team ($79/mo · 300 req/min · 500k/mo · 256 KB).
| Plan | Monthly Price | Included Requests | Rate Limit | Max Payload | Best For |
|---|---|---|---|---|---|
| BASIC | $0.00 / mo | 500 / month | 10 req / min | 64 KB | Evaluation & CI smoke tests |
| PRO | $9.99 / mo | 15,000 / month | 60 req / min | 128 KB | Solo devs & production apps |
| ULTRA | $29.99 / mo | 100,000 / month | 300 req / min | 256 KB | Growing SaaS & multi-agent pipelines |
| MEGA | $79.99 / mo | 500,000 / month | 1,000 req / min | 256 KB | High-volume enterprise workloads |
Yes, it traverses include, a, mx, ptr, and exists mechanisms to report the exact DNS lookup count.
Pair this auditor with POST /v1/email-dns-generator to generate ready-to-publish DNS TXT records.
Since 2024, Google and Yahoo require valid SPF, DKIM, and a DMARC record for all bulk senders.
Performs public DNS-over-HTTPS lookups only; no private data is stored.
Worker Zero-Logging Guarantee: Cloudflare Workers Observability and invocation logging are disabled (observability.enabled = false, head_sampling_rate = 0, invocation_logs = false). Requests via RapidAPI or Zyla traverse marketplace proxies; use a Direct Bearer Key for zero-intermediary routing.
Lint existing SPF/DMARC strings and generate clean, RFC-compliant DNS TXT records.
Block disposable emails, alias abuse, and bot signups with a 0–100 fraud risk score.
Audit CSP, HSTS, and browser security headers with an A+ to F grade and fix snippets.