Developers
API reference
Use every tool in the suite from your own app, website or script. One key, JSON over HTTPS, and the same result format for all checkers.
Authentication
Create a free account, then make a key in your dashboard. The key is shown once, so copy it straight away.
Every request needs an API key in the Authorization header. Keys start with dk_live_. The X-API-Key header works too. Keys are never accepted in the URL.
curl "https://tools.joindeliverly.com/api/v1/check/dmarc-checker?domain=example.com" \ -H "Authorization: Bearer dk_live_your_key_here"
Base URL: https://tools.joindeliverly.com/api/v1. Call GET /tools for the list of tools, SPF vendors and signature templates.
Checks
GET https://tools.joindeliverly.com/api/v1/check/{tool}?domain=example.com| Tool | {tool} | Extra parameters |
|---|---|---|
| SPF Record Checker | spf-checker | – |
| DKIM Record Checker | dkim-checker | selector (optional, comma-separated). Without it, common selectors are tried. |
| DMARC Record Checker | dmarc-checker | – |
| MTA-STS Checker | mta-sts-checker | fast=1 skips the port 25 STARTTLS probes |
| MX Lookup and ESP Finder | mx-lookup | – |
| Nameserver Lookup | ns-lookup | – |
| CNAME Checker | cname-checker | – |
| SSL Certificate Checker | ssl-checker | port: 443 (default), 25, 587, 465, 993 or 995 |
The domain parameter accepts a bare domain, a URL or an email address; it is normalised for you. Every checker returns the same envelope:
{
"tool": "dmarc-checker",
"input": "example.com",
"checked_at": "2026-11-20T13:42:00Z",
"status": "warning", // pass | warning | fail | info
"score": 90, // 0–100: 25 off per kind of error, 10 per kind of warning
"summary": "DMARC record is valid, but p=none gives no protection yet.",
"record": "v=DMARC1; p=none; rua=mailto:dmarc@example.com",
"parsed": { … }, // tool-specific details
"issues": [
{ "id": "DMARC009", "severity": "warning",
"title": "Policy is p=none",
"message": "p=none meets the Gmail, Yahoo and Microsoft bulk-sender rules, but spoofed mail is still delivered.",
"fix": "When reports show all your senders pass, move to p=quarantine, then p=reject." }
],
"related": ["spf-checker", "dkim-checker", "dmarc-generator"],
"dns_trace": [ { "name": "_dmarc.example.com", "type": "TXT", "status": "NOERROR", "ms": 18 } ]
}Issue IDs (SPF004, DKIM007, DMARC009…) are stable, so you can match on them.
JavaScript
const res = await fetch("https://tools.joindeliverly.com/api/v1/check/spf-checker?domain=example.com", {
headers: { Authorization: `Bearer ${process.env.DELIVERLY_API_KEY}` },
});
const result = await res.json();
if (result.status !== "pass") console.log(result.issues.map((i) => i.title));Python
import os, requests
r = requests.get(
"https://tools.joindeliverly.com/api/v1/check/mx-lookup",
params={"domain": "example.com"},
headers={"Authorization": f"Bearer {os.environ['DELIVERLY_API_KEY']}"},
timeout=30,
)
print(r.json()["summary"])Full report
GET https://tools.joindeliverly.com/api/v1/report?domain=example.com
Runs SPF, DKIM, DMARC, MX, MTA-STS, nameserver and SSL checks in parallel. The response has an overall status and score, and a results object keyed by tool, each value being the envelope above. It counts as one request and takes a few seconds.
Generators
POST https://tools.joindeliverly.com/api/v1/generate/{tool}
Content-Type: application/jsonThe four DNS generators return the records to publish in a dns array (type, name, value, and strings already split at 255 characters). SPF, DKIM and DMARC also return issues from the same linter the checkers use. The signature generator returns HTML instead.
spf-generator
| domain | Optional. Needed for merge_existing. |
| vendors | Array of vendor names from GET /tools, e.g. ["Google Workspace"]. |
| includes | Array of include domains for anything not in the vendor list. |
| ips | Array of IPv4/IPv6 addresses or CIDR ranges. |
| a, mx | true to authorise the domain's own A record or MX hosts. |
| policy | "~all" (default), "-all" or "?all". |
| no_mail | true returns v=spf1 -all for a domain that never sends. |
| merge_existing | true starts from the domain's live record. |
curl -X POST "https://tools.joindeliverly.com/api/v1/generate/spf-generator" \
-H "Authorization: Bearer dk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "domain": "example.com", "vendors": ["Google Workspace", "SendGrid"], "ips": ["203.0.113.10"], "policy": "~all" }'The response has lookups and publishable. Above 10 lookups publishable is false, because receivers would return a permanent error.
dkim-generator
| domain | Required. |
| selector | Optional. Defaults to s + year + month, e.g. s202611. |
| key_type | "rsa2048" (default), "rsa4096" or "ed25519". |
| strict | true adds t=s (no subdomains). |
curl -X POST "https://tools.joindeliverly.com/api/v1/generate/dkim-generator" \
-H "Authorization: Bearer dk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "domain": "example.com", "key_type": "rsa2048" }'The response includes private_key_pem. The key pair is generated in memory for that response and is never stored or logged, so save it straight away. If you'd rather the private key never leave your machine, use the browser generator instead.
dmarc-generator
| domain | Optional. Needed to work out external report authorisation. |
| policy | "none" (default), "quarantine" or "reject". |
| subdomain_policy | Optional sp= value. |
| rua, ruf | Arrays of report email addresses. |
| np | false to leave out np=reject (on by default). |
| strict_alignment | true adds adkim=s and aspf=s. |
| fo | true adds fo=1 when ruf is set. |
| testing | true adds t=y for a soft rollout. |
curl -X POST "https://tools.joindeliverly.com/api/v1/generate/dmarc-generator" \
-H "Authorization: Bearer dk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "domain": "example.com", "policy": "quarantine", "rua": ["dmarc@example.com"] }'mta-sts-generator
| domain | Required. |
| mx | Array of MX hosts. Left out, the live MX records are used. |
| mode | "testing" (default), "enforce" or "none". |
| max_age | Seconds. Default 604800 (one week). |
| rua | TLS report address. Default tls-reports@domain. |
| id | Optional policy id. Default is the current UTC time, e.g. 20261120T134200. |
curl -X POST "https://tools.joindeliverly.com/api/v1/generate/mta-sts-generator" \
-H "Authorization: Bearer dk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "domain": "example.com", "mode": "testing" }'The response has policy_file (url, content_type, content) to host over HTTPS, the two TXT records in dns, the publish_order to follow, and errors, which is empty when the policy file parses cleanly.
email-signature-generator
| name | Required. |
| template | "side" (default), "stacked", "photo", "bar", "compact" or "minimal". |
| title, company, phone, mobile, email, website, address | Contact details. |
| logo_url, logo_width, photo_url | https image URLs; logo width 60–220. |
| color, font | Hex colour; Arial, Helvetica, Verdana, Tahoma or Georgia. |
| linkedin, x, facebook, instagram, youtube | Social links. |
| cta_text, cta_url, banner_url, banner_link, disclaimer | Optional extras. |
curl -X POST "https://tools.joindeliverly.com/api/v1/generate/email-signature-generator" \
-H "Authorization: Bearer dk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "name": "Alex Morgan", "title": "Head of Support", "company": "Northwind", "email": "alex@northwind.example", "template": "side" }'The response has html, text and htm_file, the length in characters with fits_outlook (8,000) and fits_gmail (10,000), and warnings about image URLs. It has no dns array.
Errors and limits
Errors use standard HTTP status codes and one shape:
{ "error": { "code": "invalid_domain", "message": "\"exa mple\" is not a valid domain name." } }| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_domain, invalid_input, invalid_json, check_failed | The request can't be processed. The message says what to change. An unsupported port is a check_failed. |
| 401 | missing_api_key, invalid_api_key | No key, a wrong key or a revoked key. |
| 403 | origin_not_allowed | The key is restricted to other websites. |
| 404 | unknown_tool | No tool with that name. |
| 413 | body_too_large | The JSON body of a generator request is too big. |
| 429 | rate_limited, target_rate_limited | Too many requests. Wait for the Retry-After seconds. |
| 500 | internal_error | Something failed on our side. Try again. |
Each key has its own per-minute limit (120 by default). Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Separately, one target domain can be checked 20 times a minute across all callers, so the API can't be used to flood someone's nameservers.
Use from a website
The API sends CORS headers, so browser code can call it directly. A key used in browser code is visible to every visitor, so create that key with allowed websites set: browsers then accept it only on those sites. For anything else, call the API from your server and keep the key secret.
<script>
async function checkDomain(domain) {
const res = await fetch("https://tools.joindeliverly.com/api/v1/check/dmarc-checker?domain=" + encodeURIComponent(domain), {
headers: { "X-API-Key": "dk_live_key_restricted_to_your_site" },
});
return res.json();
}
</script>