Skip to content
deliverly.ai

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 Checkerspf-checker–
DKIM Record Checkerdkim-checkerselector (optional, comma-separated). Without it, common selectors are tried.
DMARC Record Checkerdmarc-checker–
MTA-STS Checkermta-sts-checkerfast=1 skips the port 25 STARTTLS probes
MX Lookup and ESP Findermx-lookup–
Nameserver Lookupns-lookup–
CNAME Checkercname-checker–
SSL Certificate Checkerssl-checkerport: 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/json

The 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

domainOptional. Needed for merge_existing.
vendorsArray of vendor names from GET /tools, e.g. ["Google Workspace"].
includesArray of include domains for anything not in the vendor list.
ipsArray of IPv4/IPv6 addresses or CIDR ranges.
a, mxtrue to authorise the domain's own A record or MX hosts.
policy"~all" (default), "-all" or "?all".
no_mailtrue returns v=spf1 -all for a domain that never sends.
merge_existingtrue 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

domainRequired.
selectorOptional. Defaults to s + year + month, e.g. s202611.
key_type"rsa2048" (default), "rsa4096" or "ed25519".
stricttrue 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

domainOptional. Needed to work out external report authorisation.
policy"none" (default), "quarantine" or "reject".
subdomain_policyOptional sp= value.
rua, rufArrays of report email addresses.
npfalse to leave out np=reject (on by default).
strict_alignmenttrue adds adkim=s and aspf=s.
fotrue adds fo=1 when ruf is set.
testingtrue 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

domainRequired.
mxArray of MX hosts. Left out, the live MX records are used.
mode"testing" (default), "enforce" or "none".
max_ageSeconds. Default 604800 (one week).
ruaTLS report address. Default tls-reports@domain.
idOptional 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

nameRequired.
template"side" (default), "stacked", "photo", "bar", "compact" or "minimal".
title, company, phone, mobile, email, website, addressContact details.
logo_url, logo_width, photo_urlhttps image URLs; logo width 60–220.
color, fontHex colour; Arial, Helvetica, Verdana, Tahoma or Georgia.
linkedin, x, facebook, instagram, youtubeSocial links.
cta_text, cta_url, banner_url, banner_link, disclaimerOptional 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." } }
StatusCodeMeaning
400invalid_domain, invalid_input, invalid_json, check_failedThe request can't be processed. The message says what to change. An unsupported port is a check_failed.
401missing_api_key, invalid_api_keyNo key, a wrong key or a revoked key.
403origin_not_allowedThe key is restricted to other websites.
404unknown_toolNo tool with that name.
413body_too_largeThe JSON body of a generator request is too big.
429rate_limited, target_rate_limitedToo many requests. Wait for the Retry-After seconds.
500internal_errorSomething 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>