Docs menu

CAA builder

Build CAA records that name the certificate authorities allowed to issue for your domain, without locking out your own.

POST /v1/build/caa

Price
Free; any API key works and nothing is charged.
Cache
Never cached; every call runs again.
MCP tool
build_dns_record

Run it in the browser

Request body

Request body fields
NameTypeDescription
domainstring or nullYour domain; names the records.
issue (required)array of stringCertificate authorities allowed to issue, by id or CAA identifier; an empty list means no authority may issue.
wildcard"same" | "none" | "custom"Who may issue wildcard certificates.
issuewildarray of string or nullAuthorities allowed to issue wildcard certificates, when wildcard is custom.
validation_methodsarray of "dns-01" | "http-01" | "tls-alpn-01" or nullAllowed validation methods, for every authority listed.
account_uristring or nullYour ACME account URI; only with exactly one authority.
iodefstring or nullWhere authorities report refused requests (mailto or https).
current_issuerstring or nullThe authority that issued your current certificate, to warn before locking it out.

Response

Response fields
NameTypeDescription
tool (required)string
target (required)string
status (required)"ok" | "partial" | "error"
fetched_atstring
cachedboolean
credits_usedintegerCredits this call took from your balance. 0 for free tools, for a replay of an earlier call, and for a free check run on the website without signing in
summary (required)string
scoreinteger or null
findingsarray of object
credits_remaining (required)integerYour balance after this call. It can be below zero after a refund; free tools still work then
data (required)objectThis tool's result
data.kind (required)"spf" | "dmarc" | "caa"
data.name (required)string
data.type (required)"TXT" | "CAA"
data.value (required)string
data.strings (required)array of string
data.length (required)integer
data.zone_line (required)string
data.mode (required)"build" | "validate"
data.spfobject or null
data.dmarcobject or null
data.caaobject or null

Errors

  • 400 Invalid domain, URL or parameter, a TLD this tool can't check, or an X-Request-Id already used for another call (`invalid_domain`, `invalid_url`, `invalid_request`, `unsupported_tld`)
  • 401 Missing, unknown or revoked API key, or one whose creator is no longer a member of the account (`unauthorized`)
  • 403 Account suspended, the key's creator is over the plan's seats, or an anonymous check without a valid proof-of-work or for a tool that needs an account, or bulk checks before a first purchase (`account_suspended`, `plan_limit`, `challenge_required`, `sign_in_required`, `bulk_locked`)
  • 429 Too many requests, today's free checks are used up, or too many website scans at once; wait for the number of seconds in the Retry-After header (`rate_limited`, `free_limit_reached`, `too_many_jobs`). Not charged
  • 500 Unexpected error (`internal_error`)

Example

curl

curl
curl -X POST "https://api.dnssuper.com/v1/build/caa" \
  -H "Authorization: Bearer $DNSSUPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'

Python

Python (httpx)
import os

import httpx

client = httpx.Client(
    base_url="https://api.dnssuper.com",
    headers={"Authorization": f"Bearer {os.environ['DNSSUPER_API_KEY']}"},
    timeout=60,
)
response = client.post("/v1/build/caa", json={
    "domain": "example.com",
})
response.raise_for_status()
result = response.json()
print(result["summary"], result["credits_used"])

TypeScript

TypeScript (fetch)
const response = await fetch("https://api.dnssuper.com/v1/build/caa", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.DNSSUPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"domain":"example.com"}),
});
if (!response.ok) throw new Error((await response.json()).error.message);
const result = await response.json();
console.log(result.summary, result.credits_used);
Example response
Example response
{
  "tool": "caa-generator",
  "target": "",
  "status": "ok",
  "fetched_at": "2026-11-14T10:00:00Z",
  "cached": false,
  "credits_used": 0,
  "summary": "These 3 CAA records for example.com are ready to publish.",
  "findings": [],
  "data": {
    "kind": "caa",
    "name": "example.com",
    "type": "CAA",
    "value": "0 issue \"letsencrypt.org\"\n0 issue \"pki.goog\"\n0 iodef \"mailto:security@example.com\"",
    "strings": [
      "0 issue \"letsencrypt.org\"",
      "0 issue \"pki.goog\"",
      "0 iodef \"mailto:security@example.com\""
    ],
    "length": 82,
    "zone_line": "example.com. 3600 IN CAA 0 issue \"letsencrypt.org\"\nexample.com. 3600 IN CAA 0 issue \"pki.goog\"\nexample.com. 3600 IN CAA 0 iodef \"mailto:security@example.com\"",
    "mode": "build",
    "caa": {
      "records": [
        {
          "flags": 0,
          "tag": "issue",
          "value": "letsencrypt.org",
          "presentation": "0 issue \"letsencrypt.org\""
        },
        {
          "flags": 0,
          "tag": "issue",
          "value": "pki.goog",
          "presentation": "0 issue \"pki.goog\""
        },
        {
          "flags": 0,
          "tag": "iodef",
          "value": "mailto:security@example.com",
          "presentation": "0 iodef \"mailto:security@example.com\""
        }
      ],
      "zone_lines": [
        "example.com. 3600 IN CAA 0 issue \"letsencrypt.org\"",
        "example.com. 3600 IN CAA 0 issue \"pki.goog\"",
        "example.com. 3600 IN CAA 0 iodef \"mailto:security@example.com\""
      ]
    }
  },
  "credits_remaining": 498
}

MCP

MCP tool call
{
  "tool": "build_dns_record",
  "arguments": {
    "domain": "example.com"
  }
}
Compact MCP output
These 3 CAA records for example.com are ready to publish.
Name: example.com (CAA)
Zone line: example.com. 3600 IN CAA 0 issue "letsencrypt.org"
Zone line: example.com. 3600 IN CAA 0 issue "pki.goog"
Zone line: example.com. 3600 IN CAA 0 iodef "mailto:security@example.com"
No issues found.
Free | checked 2026-11-14 10:00 UTC