{"openapi":"3.1.0","info":{"title":"Sendfinery","description":"Check a domain's SPF, DKIM, DMARC and MX records, look up DNS and read email headers. Web, API, MCP.\n\nBase URL: `https://api.sendfinery.com`.\n\n### Authentication\nSend your key in the `X-API-Key` header. Calls without a key run anonymously at\na lower rate limit per IP address.\n\n### Rate limits\nEvery response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and\n`X-RateLimit-Reset` (seconds until the window resets). Over-budget calls return\n`429` with a `Retry-After` header. Check your live budget at `GET /v1/me`.\n\n### Pagination\nList endpoints return a keyset envelope: `{\"items\": [...], \"next_cursor\": \"...\"}`.\nPass `next_cursor` back as the `?cursor=` query param for the next page; it is\n`null` on the last page.\n\n### Errors\nErrors are [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) `problem+json` with a\nstable machine-readable **`code`** (e.g. `rate_limited`, `credits_exhausted`,\n`validation_error`). Branch on `code`. The `title` and `detail` text may change.\n\n### Quickstart\n```sh\ncurl -H \"X-API-Key: $API_KEY\" https://api.sendfinery.com/v1/me\n```\n","version":"1"},"servers":[{"url":"https://api.sendfinery.com"}],"paths":{"/v1/me":{"get":{"tags":["Account"],"summary":"Your plan, remaining requests, and remaining credits","description":"Check where you stand before a call fails.\n\nReturns the plan this request runs on and whether your key was recognized.\nWithout an `X-API-Key`, the call runs anonymously at the rate limit for\ncalls without a key. It also returns the requests left in the current window\nand the features your plan includes. On plans priced in credits, it returns\nthe credits left in the current billing period.\n\nThis call does not count against your rate limit, so the numbers it reports\nare the numbers you have.\n\n**Credits:** free. This endpoint is not metered.","operationId":"get_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":0,"x-connector":{"kind":"action"}}},"/v1/domains":{"get":{"tags":["Watched domains"],"summary":"List your watched domains","description":"Lists the domains you watch, oldest first, with each one's latest grade\nand when it is checked next, plus your plan's `limit` and how many you\nwatch (`used`). Past the limit, after a downgrade, the newest domains are\n`paused`: kept, but not checked until your plan allows them again.\n\n**Credits:** free. This endpoint is not metered.","operationId":"list_watched_domains","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchedDomains"}}}},"401":{"description":"No valid API key and no signed-in session (`unauthorized`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":0,"x-connector":{"kind":"action"}},"post":{"tags":["Watched domains"],"summary":"Watch a domain","description":"Starts watching a domain and checks its SPF, DMARC, DKIM (common\nselectors) and MX at once. Returns the domain with its first check's\nfindings; it is checked again every 7 days. A free account watches 1\ndomain, Essential 10 and Scale 50.\n\n**Credits:** free. This endpoint is not metered.","operationId":"watch_domain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDetail"}}}},"401":{"description":"No valid API key and no signed-in session (`unauthorized`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Your plan's domain limit is reached (`quota_exceeded`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"You already watch this domain (`already_watched`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The name is no domain (`invalid_domain`), or the body is invalid (`validation_error`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":0,"x-connector":{"kind":"action"}}},"/v1/domains/{name}":{"get":{"tags":["Watched domains"],"summary":"Get a watched domain's report","description":"Returns a watched domain's report: the latest check's snapshot and\nfindings, the last 10 checks with what changed in each, and its DMARC\naggregate report totals for the last 7 and 30 days with the sources that\nfailed both aligned DKIM and aligned SPF.\n\n**Credits:** free. This endpoint is not metered.","operationId":"get_watched_domain","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","description":"The watched domain's name, such as example.com, or its `id`.","title":"Name"},"description":"The watched domain's name, such as example.com, or its `id`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDetail"}}}},"401":{"description":"No valid API key and no signed-in session (`unauthorized`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"You watch no such domain (`not_found`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"x-credits-cost":0,"x-connector":{"kind":"action"}},"delete":{"tags":["Watched domains"],"summary":"Stop watching a domain","description":"Stops watching a domain and deletes its check history and DMARC\nreports.\n\n**Credits:** free. This endpoint is not metered.","operationId":"unwatch_domain","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","description":"The watched domain's name, such as example.com, or its `id`.","title":"Name"},"description":"The watched domain's name, such as example.com, or its `id`."}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"No valid API key and no signed-in session (`unauthorized`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"You watch no such domain (`not_found`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"x-credits-cost":0,"x-connector":{"kind":"action"}}},"/v1/domaincheck/check":{"post":{"tags":["Domain check"],"summary":"Check a domain's email setup (SPF, DKIM, DMARC, MX)","description":"Run the SPF, DMARC, DKIM and MX checks of a domain at once.\n\nEach part is the same check as its own endpoint (`/v1/spf/check`,\n`/v1/dmarc/check`, `/v1/dkim/check` without a selector, `/v1/mx/lookup`),\nwith its findings and its `grade`. DKIM tries a fixed list of common\nselectors only, since DNS cannot list a domain's selectors; check your\nown selector with `/v1/dkim/check`. The top-level `grade` is the worst\nlevel among all findings: `ok`, `warn` or `error`.\n\nWorks without an API key for 20 checks a day per IP address. With a key,\na check costs three credits, and a rejected call costs nothing.\n\n**Credits:** 3 per call.","operationId":"check_domain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResult"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":3,"x-connector":{"kind":"action"}}},"/v1/headers/analyze":{"post":{"tags":["Headers"],"summary":"Analyze an email header","description":"Read a pasted message header and report how the message was delivered.\n\n`hops` lists the Received headers oldest first, each with the sending and\nreceiving server, the protocol, its time and the delay since the previous\nhop (the first hop's since the Date header). `auth_results` are the SPF,\nDKIM and DMARC verdicts of the server named in `authserv_id`, read from\nthe topmost Authentication-Results header. `alignment` says whether the\nFrom domain matches the Return-Path domain (SPF) and a DKIM signature's\n`d=` domain (DKIM); DMARC needs one of the two. `findings` lists what is\nwrong or fine, and `grade` is the worst level among them.\n\nNothing is looked up in DNS. The header is parsed in memory and not\nstored. At most 200 KB; an empty or oversize paste answers 422\n(`no_headers`, `headers_too_large`).\n\nWorks without an API key for 20 analyses a day per IP address. With a\nkey, an analysis costs one credit, and a rejected call costs nothing.\n\n**Credits:** 1 per call.","operationId":"analyze_email_headers","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeaderAnalyzeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeaderReport"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":1,"x-connector":{"kind":"action"}}},"/v1/dns/lookup":{"post":{"tags":["DNS"],"summary":"Look up a domain's DNS records","description":"Look up a domain's DNS records through public resolvers (Quad9, then\nCloudflare), with no cache, so the answer is what the internet sees now.\n\n`types` picks any of A, AAAA, MX, TXT, NS, CNAME, SOA and CAA; leave it\nout for all eight. Each answer gives its `status` (`ok`, `nxdomain`,\n`nodata`, `timeout` or `error`), the `records` as text and the `ttl`. A\nCNAME is followed for the other types, so their records can belong to\nthe name it points to. `findings` names a domain that does not exist and\nqueries that failed.\n\nWorks without an API key for 20 lookups a day per IP address. With a key,\na lookup costs one credit, and a rejected call costs nothing.\n\n**Credits:** 1 per call.","operationId":"lookup_dns","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsLookupResult"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":1,"x-connector":{"kind":"action"}}},"/v1/mx/lookup":{"post":{"tags":["MX"],"summary":"Look up a domain's mail servers (MX)","description":"List the mail servers (MX records) of a domain, sorted by preference,\nwith the IPv4 and IPv6 addresses each one resolves to.\n\nThe result also says when the domain publishes a null MX (`0 .`: it\nreceives no mail) and when it has no MX record, so that senders deliver\nto the domain's own address (`fallback`). `findings` lists what the check\nfound: each has a `level` (`ok`, `warn` or `error`), a stable `code` and a\nsentence to show; `grade` is the worst level among them.\n\nWorks without an API key for a few lookups a day per IP address. With a\nkey, a lookup costs one credit.\n\n**Credits:** 1 per call.","operationId":"lookup_mx","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MxLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MxResult"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":1,"x-connector":{"kind":"action"}}},"/v1/dmarc/check":{"post":{"tags":["DMARC"],"summary":"Check a domain's DMARC policy","description":"Find the DMARC policy that applies to a domain and check it against\nRFC 9989.\n\nThe lookup follows RFC 9989's DNS tree walk: when `_dmarc.<domain>` has\nno record, the parent domains are tried, so `policy_domain` names where\nthe record was found and `inherited` says whether it is a parent's.\n`effective_policy` is what receivers apply to the domain's mail. Each\n`rua` address on another domain is checked for its\n`<domain>._report._dmarc.<host>` authorization record. `findings` lists\nwhat is wrong or missing, and `grade` is the worst of them.\n\nWithout an API key, 20 checks a day per IP address are free.\n\n**Credits:** 1 per call.","operationId":"check_dmarc","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmarcCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmarcResult"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":1,"x-connector":{"kind":"action"}}},"/v1/dkim/check":{"post":{"tags":["DKIM"],"summary":"Check a domain's DKIM keys","description":"Look up the DKIM public key of a domain and check it.\n\nWith `selector`, the key at `<selector>._domainkey.<domain>` is read.\nWithout one, a fixed list of common selectors (Google Workspace,\nMicrosoft 365, Amazon SES, SendGrid, Mailchimp and others) is tried, and\n`common_only` is true: DNS cannot list a domain's selectors, so a key\nunder any other name is not found. Your selector is the `s=` tag of the\nDKIM-Signature header in a message you sent.\n\nFor each key found, the result gives its DNS name, key type, RSA key\nsize, and the testing (`t=y`) and revoked (empty `p=`) flags; `findings`\nlists what is wrong or fine, and `grade` is the worst level among them.\n\nWorks without an API key for 20 checks a day per IP address. With a key,\na check costs one credit, and a rejected call costs nothing.\n\n**Credits:** 1 per call.","operationId":"check_dkim","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DkimCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DkimResult"}}}},"422":{"description":"Validation Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":1,"x-connector":{"kind":"action"}}},"/v1/spf/check":{"post":{"tags":["SPF"],"summary":"Check a domain's SPF record","description":"Read the domain's SPF record (the TXT record that starts with `v=spf1`)\nand every record it pulls in with `include:` or `redirect=`, as a tree.\n\nThe result counts the DNS lookups a receiver makes to evaluate the record\n(`include`, `a`, `mx`, `ptr`, `exists` and `redirect`, over the whole\ntree) against the limit of 10, and the void lookups (lookups that find\nnothing) against the limit of 2. Above either limit receivers answer\n`permerror` and SPF fails for every message. When `lookups_exact` is\nfalse the check stopped counting past the limit, and `lookups` is a lower\nbound.\n\nEach finding has a `level` (`ok`, `warn` or `error`), a stable `code` and\na `text` to show a person; `grade` is the worst level.\n\nWorks without an API key for 20 checks a day per IP address. With a key,\na rejected call costs no credits.\n\n**Credits:** 1 per call.","operationId":"check_spf","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfResult"}}}},"402":{"description":"The credit balance is used up (`credits_exhausted`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The body is invalid (`validation_error`), or `domain` is not a domain name (`invalid_domain`): empty, an IP address, a name without a dot, or a character a domain cannot have.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The rate limit is reached (`rate_limited`), or, without an API key, the free checks of the day are used up (`daily_limit`). Retry after the seconds in the `Retry-After` header, or use a key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"APIKeyHeader":[]}],"x-credits-cost":1,"x-connector":{"kind":"action"}}}},"components":{"schemas":{"Alignment":{"properties":{"spf_aligned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spf Aligned"},"dkim_aligned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dkim Aligned"}},"additionalProperties":false,"type":"object","required":["spf_aligned","dkim_aligned"],"title":"Alignment","description":"Whether the From domain lines up with the Return-Path domain (SPF)\nand with a DKIM signature's ``d=`` (DKIM). None when the header that\nwould say is missing."},"AuthResult":{"properties":{"method":{"type":"string","enum":["spf","dkim","dmarc"],"title":"Method"},"result":{"type":"string","title":"Result"},"properties":{"type":"string","title":"Properties"}},"additionalProperties":false,"type":"object","required":["method","result","properties"],"title":"AuthResult","description":"One verdict of the receiving server (RFC 8601): ``method`` spf, dkim\nor dmarc, ``result`` such as ``pass`` or ``fail``, and the rest of the\nclause (``properties``: ``header.d=…``, ``smtp.mailfrom=…``)."},"CheckSummary":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade"},"changes":{"items":{"type":"string"},"type":"array","title":"Changes"}},"type":"object","required":["at","grade","changes"],"title":"CheckSummary","description":"One past check: when, its grade, and what changed since the one before."},"CreditsInfo":{"properties":{"balance":{"type":"integer","title":"Balance"},"granted":{"type":"integer","title":"Granted"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"},"pack":{"type":"integer","title":"Pack","description":"Credits left in your one-time packs, spent after the monthly credits run out. They do not expire.","default":0}},"type":"object","required":["balance","granted"],"title":"CreditsInfo","description":"Your credit balance for the current billing period. `granted` is what\nyour plan included, `balance` what is still unspent, and `period_end` the\ndate (ISO 8601) your allowance refills. Present only on plans that are\npriced in credits."},"DkimCheckRequest":{"properties":{"domain":{"type":"string","title":"Domain","description":"The domain that sends the mail, such as example.com. A URL or an email address is accepted too; only its domain is used.","examples":["example.com"]},"selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selector","description":"The DKIM selector: the s= tag of the DKIM-Signature header in a message the domain sent. Leave it out to try a fixed list of common selectors; a key under any other selector is then not found.","examples":["google"]}},"type":"object","required":["domain"],"title":"DkimCheckRequest","description":"A domain to check, and optionally the DKIM selector its mail is signed with.","examples":[{"domain":"example.com","selector":"google"},{"domain":"example.com"}]},"DkimKey":{"properties":{"text":{"type":"string","title":"Text"},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"},"v":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"},"k":{"type":"string","title":"K"},"p":{"type":"string","title":"P"},"t":{"items":{"type":"string"},"type":"array","title":"T"},"h":{"items":{"type":"string"},"type":"array","title":"H"},"s":{"items":{"type":"string"},"type":"array","title":"S"},"bits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bits"},"revoked":{"type":"boolean","title":"Revoked"},"testing":{"type":"boolean","title":"Testing"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"}},"additionalProperties":false,"type":"object","required":["text","tags","v","k","p","t","h","s","bits","revoked","testing","findings"],"title":"DkimKey","description":"A parsed DKIM key record. ``k`` is the key type (``rsa`` by default);\n``bits`` the RSA modulus length (None for Ed25519 or an unreadable key);\n``revoked`` an empty ``p=``; ``testing`` the ``t=y`` flag."},"DkimResult":{"properties":{"domain":{"type":"string","title":"Domain"},"selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selector"},"common_only":{"type":"boolean","title":"Common Only"},"tried":{"items":{"type":"string"},"type":"array","title":"Tried"},"found":{"items":{"$ref":"#/components/schemas/DkimSelector"},"type":"array","title":"Found"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade"}},"additionalProperties":false,"type":"object","required":["domain","selector","common_only","tried","found","findings","grade"],"title":"DkimResult","description":"The DKIM check of ``domain``. ``selector`` is the one asked for (None\nwhen the common ones were tried, then ``common_only`` is True);\n``tried`` lists every selector queried and ``found`` the keys."},"DkimSelector":{"properties":{"selector":{"type":"string","title":"Selector"},"name":{"type":"string","title":"Name"},"key":{"$ref":"#/components/schemas/DkimKey"}},"additionalProperties":false,"type":"object","required":["selector","name","key"],"title":"DkimSelector","description":"One selector that holds a key: the name queried and the parsed key."},"DmarcCheckRequest":{"properties":{"domain":{"type":"string","maxLength":512,"title":"Domain","description":"The domain to check, such as example.com. A URL or an email address works too: only its domain is used. Internationalized names are accepted."}},"type":"object","required":["domain"],"title":"DmarcCheckRequest","description":"The domain whose DMARC policy to check.","examples":[{"domain":"example.com"}]},"DmarcRecord":{"properties":{"text":{"type":"string","title":"Text"},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"},"p":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"P"},"sp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sp"},"np":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Np"},"adkim":{"type":"string","enum":["r","s"],"title":"Adkim"},"aspf":{"type":"string","enum":["r","s"],"title":"Aspf"},"rua":{"items":{"type":"string"},"type":"array","title":"Rua"},"ruf":{"items":{"type":"string"},"type":"array","title":"Ruf"},"fo":{"type":"string","title":"Fo"},"t":{"type":"boolean","title":"T"},"psd":{"type":"string","enum":["y","n","u"],"title":"Psd"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"}},"additionalProperties":false,"type":"object","required":["text","tags","p","sp","np","adkim","aspf","rua","ruf","fo","t","psd","findings"],"title":"DmarcRecord","description":"A parsed DMARC record. ``tags`` holds every tag as written (names\nlowercase); the named fields are the RFC 9989 tags with their defaults\napplied (``adkim``/``aspf`` ``r``, ``t`` False, ``psd`` ``u``). ``p`` is\nNone when the tag is missing or invalid. ``rua``/``ruf`` are the\n``mailto:`` addresses (``user@host``), without the scheme."},"DmarcResult":{"properties":{"domain":{"type":"string","title":"Domain"},"policy_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Domain"},"inherited":{"type":"boolean","title":"Inherited"},"record":{"anyOf":[{"$ref":"#/components/schemas/DmarcRecord"},{"type":"null"}]},"effective_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Policy"},"queried":{"items":{"type":"string"},"type":"array","title":"Queried"},"rua":{"items":{"$ref":"#/components/schemas/RuaCheck"},"type":"array","title":"Rua"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade"}},"additionalProperties":false,"type":"object","required":["domain","policy_domain","inherited","record","effective_policy","queried","rua","findings","grade"],"title":"DmarcResult","description":"The DMARC check of ``domain``. ``policy_domain`` is where the record\nwas found (the domain itself or a parent, None without one) and\n``inherited`` whether it is a parent; ``effective_policy`` the policy\nreceivers apply to mail from ``domain`` (``p``, or ``sp`` for a\nsubdomain when set). ``queried`` lists every ``_dmarc`` name asked."},"DnsAnswer":{"properties":{"type":{"type":"string","enum":["A","AAAA","MX","TXT","NS","CNAME","SOA","CAA"],"title":"Type","description":"The record type asked for."},"status":{"type":"string","enum":["ok","nxdomain","nodata","timeout","error"],"title":"Status","description":"ok: records found. nxdomain: the domain does not exist. nodata: the domain exists but has no record of this type. timeout: no resolver answered in time. error: the query failed; reason says why."},"records":{"items":{"type":"string"},"type":"array","title":"Records","description":"The records in zone-file order of fields: an address for A and AAAA, '10 mx.example.com' for MX, the joined strings for TXT, a name for NS and CNAME, 'mname rname serial refresh retry expire minimum' for SOA, and '0 issue \"letsencrypt.org\"' for CAA."},"ttl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl","description":"How many seconds resolvers may cache the answer; null without records."},"reason":{"type":"string","title":"Reason","description":"Why a timeout or error happened.","default":""}},"additionalProperties":false,"type":"object","required":["type","status","records","ttl"],"title":"DnsAnswer","description":"The answer for one record type."},"DnsLookupRequest":{"properties":{"domain":{"type":"string","title":"Domain","description":"The domain to look up, such as example.com. A URL or an email address is accepted too; only its domain is used.","examples":["example.com"]},"types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Types","description":"The record types to look up: any of A, AAAA, MX, TXT, NS, CNAME, SOA and CAA. Leave it out to look up all eight.","examples":[["MX","TXT"]]}},"type":"object","required":["domain"],"title":"DnsLookupRequest","description":"A domain, and the record types to look up (all eight when left out).","examples":[{"domain":"example.com"},{"domain":"example.com","types":["MX","TXT"]}]},"DnsLookupResult":{"properties":{"domain":{"type":"string","title":"Domain","description":"The domain as looked up: lowercase ASCII."},"answers":{"items":{"$ref":"#/components/schemas/DnsAnswer"},"type":"array","title":"Answers"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings","description":"What stands out: a domain that does not exist, or failed queries."},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade","description":"The worst level among the findings."}},"additionalProperties":false,"type":"object","required":["domain","answers","findings","grade"],"title":"DnsLookupResult","description":"The records of a domain, one answer per record type asked for."},"DomainCheckRequest":{"properties":{"domain":{"type":"string","title":"Domain","description":"The domain to check, such as example.com. A URL or an email address is accepted too; only its domain is used.","examples":["example.com"]}},"type":"object","required":["domain"],"title":"DomainCheckRequest","description":"A domain whose email setup to check.","examples":[{"domain":"example.com"}]},"DomainDetail":{"properties":{"domain":{"$ref":"#/components/schemas/DomainView"},"snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Snapshot"},"findings":{"items":{"$ref":"#/components/schemas/WatchFinding"},"type":"array","title":"Findings"},"checks":{"items":{"$ref":"#/components/schemas/CheckSummary"},"type":"array","title":"Checks"},"week":{"$ref":"#/components/schemas/ReportTotals"},"month":{"$ref":"#/components/schemas/ReportTotals"}},"type":"object","required":["domain","snapshot","findings","checks","week","month"],"title":"DomainDetail","description":"Everything a domain's page shows."},"DomainResult":{"properties":{"domain":{"type":"string","title":"Domain"},"spf":{"$ref":"#/components/schemas/SpfResult"},"dmarc":{"$ref":"#/components/schemas/DmarcResult"},"dkim":{"$ref":"#/components/schemas/DkimResult"},"mx":{"$ref":"#/components/schemas/MxResult"},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade"}},"additionalProperties":false,"type":"object","required":["domain","spf","dmarc","dkim","mx","grade"],"title":"DomainResult","description":"Every check of ``domain``; ``grade`` is the worst finding's level."},"DomainView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"next_check_at":{"type":"string","format":"date-time","title":"Next Check At"},"grade":{"anyOf":[{"type":"string","enum":["ok","warn","error"]},{"type":"null"}],"title":"Grade"},"paused":{"type":"boolean","title":"Paused"}},"type":"object","required":["id","name","created_at","last_checked_at","next_check_at","grade","paused"],"title":"DomainView","description":"A watched domain as the surfaces show it."},"FailingSource":{"properties":{"ip":{"type":"string","title":"Ip"},"count":{"type":"integer","title":"Count"},"dkim_domains":{"items":{"type":"string"},"type":"array","title":"Dkim Domains"},"spf_domains":{"items":{"type":"string"},"type":"array","title":"Spf Domains"}},"type":"object","required":["ip","count","dkim_domains","spf_domains"],"title":"FailingSource","description":"A sending IP whose messages passed neither aligned DKIM nor aligned SPF."},"Finding":{"properties":{"level":{"type":"string","enum":["ok","info","warn","error"],"title":"Level"},"code":{"type":"string","title":"Code"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["level","code","text"],"title":"Finding","description":"One thing a check found. ``code`` is stable (``spf_plus_all``);\n``text`` is what the page and the API show."},"HeaderAnalyzeRequest":{"properties":{"headers":{"type":"string","maxLength":204800,"title":"Headers","description":"The message header as text: the lines from the first Received: down to the blank line before the body, as your mail program shows them under 'Show original' or 'View message source'. A whole message is fine; the body is ignored. At most 200 KB. The header is parsed in memory and not stored.","examples":["Received: from mail.example.net (mail.example.net [192.0.2.10])\n\tby mx.example.com with ESMTPS; Tue, 3 Nov 2026 10:00:05 +0000\nAuthentication-Results: mx.example.com; spf=pass smtp.mailfrom=example.net;\n\tdkim=pass header.d=example.net; dmarc=pass header.from=example.net\nFrom: News <news@example.net>\nSubject: Your order\nDate: Tue, 3 Nov 2026 10:00:00 +0000\n"]}},"type":"object","required":["headers"],"title":"HeaderAnalyzeRequest","description":"The header of one message, pasted as text.","examples":[{"headers":"Received: from mail.example.net (mail.example.net [192.0.2.10])\n\tby mx.example.com with ESMTPS; Tue, 3 Nov 2026 10:00:05 +0000\nAuthentication-Results: mx.example.com; spf=pass smtp.mailfrom=example.net;\n\tdkim=pass header.d=example.net; dmarc=pass header.from=example.net\nFrom: News <news@example.net>\nSubject: Your order\nDate: Tue, 3 Nov 2026 10:00:00 +0000\n"}]},"HeaderReport":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"from_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Domain"},"return_path_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Path Domain"},"dkim_domains":{"items":{"type":"string"},"type":"array","title":"Dkim Domains"},"hops":{"items":{"$ref":"#/components/schemas/Hop"},"type":"array","title":"Hops"},"authserv_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authserv Id"},"auth_results":{"items":{"$ref":"#/components/schemas/AuthResult"},"type":"array","title":"Auth Results"},"alignment":{"$ref":"#/components/schemas/Alignment"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade"}},"additionalProperties":false,"type":"object","required":["subject","message_id","date","from_domain","return_path_domain","dkim_domains","hops","authserv_id","auth_results","alignment","findings","grade"],"title":"HeaderReport","description":"What the pasted header says. ``authserv_id`` names the server that\nwrote the ``auth_results`` (the topmost ``Authentication-Results``)."},"Hop":{"properties":{"index":{"type":"integer","title":"Index"},"from_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Host"},"by_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By Host"},"with_protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"With Protocol"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp"},"delay_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delay Seconds"},"raw":{"type":"string","title":"Raw"}},"additionalProperties":false,"type":"object","required":["index","from_host","by_host","with_protocol","timestamp","delay_seconds","raw"],"title":"Hop","description":"One ``Received`` header, oldest first (``index`` 0 is the first\nserver). ``delay_seconds`` is the time since the previous hop (for the\nfirst hop, since the ``Date`` header); None when a timestamp is missing."},"MeResponse":{"properties":{"tier":{"type":"string","title":"Tier","description":"The plan this request is served on."},"is_keyed":{"type":"boolean","title":"Is Keyed","description":"Whether the request carried a valid API key. Without an `X-API-Key`, the call runs anonymously at the rate limit for calls without a key."},"rate_limit":{"$ref":"#/components/schemas/RateLimitInfo"},"credits":{"anyOf":[{"$ref":"#/components/schemas/CreditsInfo"},{"type":"null"}],"description":"Null on plans that are not priced in credits."},"features":{"items":{"type":"string"},"type":"array","title":"Features","description":"The features your plan includes."}},"type":"object","required":["tier","is_keyed","rate_limit","features"],"title":"MeResponse","description":"The `GET /v1/me` payload: who the request is authenticated as, what is\nleft of your request and credit allowances, and which features your plan\nincludes."},"MxHost":{"properties":{"preference":{"type":"integer","title":"Preference"},"host":{"type":"string","title":"Host"},"addresses":{"items":{"type":"string"},"type":"array","title":"Addresses"},"cname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cname"}},"additionalProperties":false,"type":"object","required":["preference","host","addresses","cname"],"title":"MxHost","description":"One MX record and what its host resolves to: ``addresses`` (A, then\nAAAA) and ``cname`` (the alias target, when the host is an alias)."},"MxLookupRequest":{"properties":{"domain":{"type":"string","maxLength":512,"title":"Domain","description":"The domain to look up, such as example.com. A URL or an email address works too: only its domain is used. Internationalized names are accepted."}},"type":"object","required":["domain"],"title":"MxLookupRequest","description":"The domain whose mail servers to look up.","examples":[{"domain":"example.com"}]},"MxResult":{"properties":{"domain":{"type":"string","title":"Domain"},"hosts":{"items":{"$ref":"#/components/schemas/MxHost"},"type":"array","title":"Hosts"},"null_mx":{"type":"boolean","title":"Null Mx"},"fallback":{"items":{"type":"string"},"type":"array","title":"Fallback"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade"}},"additionalProperties":false,"type":"object","required":["domain","hosts","null_mx","fallback","findings","grade"],"title":"MxResult","description":"The MX check of ``domain``. ``hosts`` are sorted by preference, then\nname. ``null_mx`` is True for RFC 7505's ``0 .``; ``fallback`` holds the\ndomain's own addresses when it has no MX records."},"RateLimitInfo":{"properties":{"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining"},"reset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reset"}},"type":"object","title":"RateLimitInfo","description":"How many requests you may still make in the current window. These are the\nsame numbers as the `X-RateLimit-*` response headers. `limit` is the size of the\nwindow, `remaining` what is left of it, and `reset` how many seconds until\nit refills (not a timestamp). All three are `null` in the rare case the\ncounter cannot be read; treat that as \"unknown\", not zero."},"ReportTotals":{"properties":{"days":{"type":"integer","title":"Days"},"reports":{"type":"integer","title":"Reports"},"messages":{"type":"integer","title":"Messages"},"passed":{"type":"integer","title":"Passed"},"pass_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pass Rate"},"failing_sources":{"items":{"$ref":"#/components/schemas/FailingSource"},"type":"array","title":"Failing Sources"}},"type":"object","required":["days","reports","messages","passed","pass_rate","failing_sources"],"title":"ReportTotals","description":"The DMARC reports whose period ended in the last ``days`` days.\n``pass_rate`` is the share of messages with aligned DKIM or SPF (None\nwithout messages)."},"RuaCheck":{"properties":{"address":{"type":"string","title":"Address"},"host":{"type":"string","title":"Host"},"external":{"type":"boolean","title":"External"},"authorized":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Authorized"},"status":{"anyOf":[{"type":"string","enum":["ok","nxdomain","nodata","timeout","error"]},{"type":"null"}],"title":"Status"}},"additionalProperties":false,"type":"object","required":["address","host","external","authorized"],"title":"RuaCheck","description":"One aggregate-report address. ``external`` is True when it is on\nanother domain than the policy's; ``authorized`` then says whether that\ndomain accepts the reports (None when it was not asked: an internal\naddress, or a DNS failure, see ``status``)."},"SpfCheckRequest":{"properties":{"domain":{"type":"string","maxLength":512,"title":"Domain","description":"The domain to check, such as example.com. A URL or an email address works too: the check takes the domain from it. Internationalized names are accepted.","examples":["example.com"]}},"type":"object","required":["domain"],"title":"SpfCheckRequest","description":"The domain whose SPF record to check.","examples":[{"domain":"example.com"}]},"SpfNode":{"properties":{"domain":{"type":"string","title":"Domain"},"via":{"type":"string","enum":["","include","redirect"],"title":"Via"},"status":{"type":"string","enum":["ok","missing","multiple","nxdomain","timeout","error","loop","skipped"],"title":"Status"},"record":{"anyOf":[{"$ref":"#/components/schemas/SpfRecord"},{"type":"null"}]},"children":{"items":{"$ref":"#/components/schemas/SpfNode"},"type":"array","title":"Children","default":[]}},"additionalProperties":false,"type":"object","required":["domain","via","status"],"title":"SpfNode","description":"One record in the tree. ``via`` is how its parent reached it (``\"\"``\nfor the domain's own record). ``status`` is ``ok`` with a ``record``;\notherwise why there is none: ``missing`` (no ``v=spf1`` record),\n``multiple``, ``nxdomain``, ``timeout``/``error`` (DNS), ``loop``, or\n``skipped`` (a macro, or the lookup limit already passed)."},"SpfRecord":{"properties":{"text":{"type":"string","title":"Text"},"terms":{"items":{"$ref":"#/components/schemas/SpfTerm"},"type":"array","title":"Terms"},"all_qualifier":{"anyOf":[{"type":"string","enum":["+","-","~","?"]},{"type":"null"}],"title":"All Qualifier"},"redirect":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect"},"includes":{"items":{"type":"string"},"type":"array","title":"Includes"},"lookup_terms":{"type":"integer","title":"Lookup Terms"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"}},"additionalProperties":false,"type":"object","required":["text","terms","all_qualifier","redirect","includes","lookup_terms","findings"],"title":"SpfRecord","description":"A parsed SPF record. ``all_qualifier`` is the qualifier of its ``all``\nmechanism (None without one); ``lookup_terms`` counts the terms in THIS\nrecord that cost a DNS lookup (the evaluator adds up the whole tree)."},"SpfResult":{"properties":{"domain":{"type":"string","title":"Domain"},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"tree":{"$ref":"#/components/schemas/SpfNode"},"lookups":{"type":"integer","title":"Lookups"},"lookups_exact":{"type":"boolean","title":"Lookups Exact"},"void_lookups":{"type":"integer","title":"Void Lookups"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"grade":{"type":"string","enum":["ok","warn","error"],"title":"Grade"}},"additionalProperties":false,"type":"object","required":["domain","record","tree","lookups","lookups_exact","void_lookups","findings","grade"],"title":"SpfResult","description":"The SPF check of ``domain``: its own record's text (None without\nexactly one), the tree, the lookup and void-lookup counts and the\nfindings. ``lookups_exact`` is False when the walk stopped at the limit,\nso ``lookups`` is a lower bound."},"SpfTerm":{"properties":{"text":{"type":"string","title":"Text"},"modifier":{"type":"boolean","title":"Modifier"},"qualifier":{"anyOf":[{"type":"string","enum":["+","-","~","?"]},{"type":"null"}],"title":"Qualifier"},"kind":{"type":"string","title":"Kind"},"value":{"type":"string","title":"Value"},"cidr":{"type":"string","title":"Cidr","default":""}},"additionalProperties":false,"type":"object","required":["text","modifier","qualifier","kind","value"],"title":"SpfTerm","description":"One term of an SPF record. ``kind`` is the mechanism (``include``,\n``ip4``, ``all``, …) or the modifier name (``redirect``, ``exp``);\n``value`` is the part after ``:`` or ``=`` (``\"\"`` if none); for ``a`` and\n``mx`` it is the domain alone, the prefix lengths are in ``cidr``."},"WatchFinding":{"properties":{"section":{"type":"string","title":"Section"},"level":{"type":"string","enum":["ok","info","warn","error"],"title":"Level"},"code":{"type":"string","title":"Code"},"text":{"type":"string","title":"Text"}},"type":"object","required":["section","level","code","text"],"title":"WatchFinding","description":"One finding of the latest check, read from its snapshot."},"WatchRequest":{"properties":{"domain":{"type":"string","title":"Domain","description":"The domain to watch, such as example.com. A URL or an email address is accepted too; only its domain is used.","examples":["example.com"]}},"type":"object","required":["domain"],"title":"WatchRequest","description":"A domain to watch.","examples":[{"domain":"example.com"}]},"WatchedDomains":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DomainView"},"type":"array","title":"Items","description":"Your watched domains, oldest first. A paused domain is past your plan's limit: it is kept but not checked until your plan allows it again."},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit","description":"How many domains your plan watches; null when it sets no limit."},"used":{"type":"integer","title":"Used","description":"How many domains you watch, paused ones included."}},"type":"object","required":["items","limit","used"],"title":"WatchedDomains","description":"The domains you watch, oldest first, and your plan's limit."},"Problem":{"description":"The RFC 9457 error body. Every error response uses it.","properties":{"type":{"default":"about:blank","description":"Problem type URI (RFC 9457).","title":"Type","type":"string"},"title":{"description":"Short human-readable summary of the status.","title":"Title","type":"string"},"status":{"description":"The HTTP status code, repeated in the body.","title":"Status","type":"integer"},"detail":{"description":"What went wrong with this request.","title":"Detail","type":"string"},"instance":{"description":"The request path that produced the error.","title":"Instance","type":"string"},"code":{"description":"Stable machine-readable error code. Branch on this, not on the text.","title":"Code","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Correlation id for this request; quote it when asking for support.","title":"Request Id"},"errors":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"description":"Per-field validation failures. Present on 422 only.","title":"Errors"},"upgrade_url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Where to add credits or move to a larger plan. Present on 402/403/429.","title":"Upgrade Url"}},"required":["title","status","detail","instance","code"],"title":"Problem","type":"object"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"tags":[{"name":"Watched domains"},{"name":"Domain check"},{"name":"Headers"},{"name":"DNS"},{"name":"MX"},{"name":"DMARC"},{"name":"DKIM"},{"name":"SPF"},{"name":"Account","description":"Check your plan, your remaining requests and credits, and what your plan includes. `GET /v1/me` is always free."}]}