{"openapi":"3.1.0","info":{"title":"Email Spam Tester API","description":"\nTest an email before you send it to anybody.\n\nThe loop is three calls. Ask for an address, send the message you were about to\nsend your list to that address, then read the report. No key, no account, no\nlimit per person on the first 100,000 reports.\n\n    curl -X POST https://email-spam-tester.com/api/v1/inbox\n    # send your message to the address it returns, then:\n    curl https://email-spam-tester.com/api/v1/tests/<slug>\n\nThe address accepts exactly one message and expires after an hour. The report\nlink is permanent and carries `report_url` inside the JSON, so a forwarded\nreport still says where it came from.\n\n**Poll `/status`, not `/`.** The full report is several thousand lines of JSON\nand the analysis takes a few seconds; the status endpoint is the cheap way to\nfind out whether it is worth fetching yet. `analysis_status` reaches\n`checks_ready` first and the AI plan lands a minute or so later under\n`ai_status`, so a caller that only wants the checks does not have to wait for\nthe plan.\n\n**Agents:** there is an MCP server at `/mcp` with the same capability and a\nblocking wait, which is a better fit than polling from a model.\n\nEvery finding carries `citations`: the section of the RFC it comes from, quoted,\nand the page where Google states its own requirement. Those are curated by hand\nrather than generated, so they can be relied on.\n","contact":{"name":"Email Spam Tester","url":"https://email-spam-tester.com/"},"version":"1.0.0"},"paths":{"/api/health":{"get":{"summary":"Health","description":"Shallow. The container healthcheck polls this every few seconds and it\nmust not open a database connection each time.","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Api Health Get"}}}}}}},"/api/health/deep":{"get":{"summary":"Deep","description":"What an external monitor should watch.","operationId":"deep_api_health_deep_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Deep Api Health Deep Get"}}}}}}},"/api/v1/placement/availability":{"get":{"tags":["Inbox placement"],"summary":"Availability","operationId":"availability_api_v1_placement_availability_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/placement":{"post":{"tags":["Inbox placement"],"summary":"Create","operationId":"create_api_v1_placement_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlacement"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/placement/by-score/{score_slug}":{"get":{"tags":["Inbox placement"],"summary":"Report For Score","operationId":"report_for_score_api_v1_placement_by_score__score_slug__get","parameters":[{"name":"score_slug","in":"path","required":true,"schema":{"type":"string","title":"Score Slug"}},{"name":"soft","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Soft"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/placement/{slug}":{"get":{"tags":["Inbox placement"],"summary":"Report","operationId":"report_api_v1_placement__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/keys":{"post":{"tags":["Keys"],"summary":"Create Key","description":"A new key for this email address. Asking again gives another key; the\nearlier ones keep working, since anybody can type somebody else's address.","operationId":"create_key_api_v1_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/keys/me":{"get":{"tags":["Keys"],"summary":"Me","description":"Who this key belongs to: what an automation platform checks on connect.","operationId":"me_api_v1_keys_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}}}}},"/api/v1/tools/spf":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's SPF record","description":"Fetches the domain's SPF record and checks its syntax (RFC 7208), its policy for unlisted servers, and what a full evaluation costs: every include and redirect is followed, DNS-querying terms are counted against the limit of 10, and lookups that return nothing against the void limit of 2 (RFC 7208 §4.6.4). `tree` is the include tree with per-record costs. No sending IP is involved, so this says whether the record can be evaluated, not whether a given server passes.\n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"spf_tool_api_v1_tools_spf_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain, e.g. example.com. A pasted URL or email address is accepted.","title":"Domain"},"description":"Domain, e.g. example.com. A pasted URL or email address is accepted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/dmarc":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's DMARC record","description":"Fetches _dmarc.<domain>, falling back to the organizational domain as receivers do (RFC 7489 §6.6.3), and validates every tag. Reports the policy that applies, pct, alignment modes, and whether each external rua/ruf destination has published the authorization record receivers require before sending reports there (RFC 7489 §7.1).\n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"dmarc_tool_api_v1_tools_dmarc_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain, e.g. example.com.","title":"Domain"},"description":"Domain, e.g. example.com."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmarcOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/dkim":{"get":{"tags":["Free DNS tools"],"summary":"Check a published DKIM key","description":"Fetches <selector>._domainkey.<domain>, follows a CNAME, parses the tags (RFC 6376 §3.6.1) and decodes the public key: RSA length against RFC 8301 (1024 bits minimum, 2048 recommended), Ed25519 as 32 raw bytes (RFC 8463). This checks the published key only; it verifies no signature.\n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"dkim_tool_api_v1_tools_dkim_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Signing domain (d=).","title":"Domain"},"description":"Signing domain (d=)."},{"name":"selector","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Selector (s=), e.g. google or s1.","title":"Selector"},"description":"Selector (s=), e.g. google or s1."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DkimOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/blocklist":{"get":{"tags":["Free DNS tools"],"summary":"Check an IP address or domain against blocklists","description":"An IPv4 address is checked against the same DNS blocklists as the report; an IPv6 address against the lists that publish IPv6 data; a domain against Spamhaus DBL, SURBL and URIBL. A list that times out or refuses our resolver is reported as such, never as clean. Status: fail if any list lists the target; otherwise error when more than half of the lists did not answer, warn when some did not, pass when all answered clean. Private, reserved and loopback addresses are refused with 422.\n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"blocklist_tool_api_v1_tools_blocklist_get","parameters":[{"name":"target","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IPv4, IPv6 or domain, e.g. 203.0.113.5.","title":"Target"},"description":"IPv4, IPv6 or domain, e.g. 203.0.113.5."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlocklistOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/mx":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's MX records","description":"Fetches the domain's MX records, sorted by preference, and resolves A and AAAA for every host. Reports a null MX (RFC 7505), the fallback to the domain's own address when there is no MX (RFC 5321 §5.1), and hosts that are IP literals, CNAMEs (RFC 2181 §10.3), missing, without an address or on a private address. MTA-STS and TLS-RPT records are reported as hints. DNS only: no connection is made to the hosts.\n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"mx_tool_api_v1_tools_mx_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain, e.g. example.com.","title":"Domain"},"description":"Domain, e.g. example.com."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MxOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/bimi":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's BIMI record, logo and mark certificate","description":"Four steps, reported separately in `steps`: the DMARC policy BIMI requires (quarantine or reject for all mail, and no sp=none); the record at <selector>._bimi.<domain>, falling back to the organizational domain; the logo at l=, fetched over HTTPS and checked against the SVG Tiny PS profile; the mark certificate at a=, read for its validity, domains, BIMI key usage, mark type and embedded logo. The certificate chain is not verified against the BIMI roots. Files are fetched only from the URLs in the record, over HTTPS, with at most two redirects.\n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"bimi_tool_api_v1_tools_bimi_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain, e.g. example.com.","title":"Domain"},"description":"Domain, e.g. example.com."},{"name":"selector","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"BIMI selector; default when empty.","title":"Selector"},"description":"BIMI selector; default when empty."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BimiOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/ptr":{"get":{"tags":["Free DNS tools"],"summary":"Check an address's reverse DNS","description":"The PTR records of an address and whether any of those names resolves back to it. A lookup that failed gives the status error; a missing record gives the status fail. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"ptr_tool_api_v1_tools_ptr_get","parameters":[{"name":"ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IPv4 or IPv6 address.","title":"Ip"},"description":"IPv4 or IPv6 address."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/mta-sts":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's MTA-STS policy","description":"The MTA-STS record of a domain and the policy file it points to: the mode, the hosts listed, and any MX host the policy leaves out. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"mta_sts_tool_api_v1_tools_mta_sts_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain.","title":"Domain"},"description":"Domain."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/tls-rpt":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's TLS-RPT record","description":"The TLS-RPT record of a domain and the addresses that receive its reports. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"tls_rpt_tool_api_v1_tools_tls_rpt_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain.","title":"Domain"},"description":"Domain."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/dnssec":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's DNSSEC state","description":"Whether the zone of a domain is signed, unsigned or broken, from its DNSKEY and DS records. A bad signature is told apart from a resolver outage. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"dnssec_tool_api_v1_tools_dnssec_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain.","title":"Domain"},"description":"Domain."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/smtp":{"get":{"tags":["Free DNS tools"],"summary":"Check STARTTLS and the certificate of a domain's mail hosts","description":"STARTTLS and the certificate on the first two MX hosts: TLS version, issuer, expiry date, and whether the chain and the name are valid. We connect only to hosts under the domain you asked about and skip mail providers, and one result per address is shared for 6 hours. No mail is sent. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"smtp_tool_api_v1_tools_smtp_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain.","title":"Domain"},"description":"Domain."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/dane":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's DANE records","description":"The TLSA records of the MX hosts, compared with the certificate a host presents when that certificate could be read. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"dane_tool_api_v1_tools_dane_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain.","title":"Domain"},"description":"Domain."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/ns":{"get":{"tags":["Free DNS tools"],"summary":"Check a domain's name servers","description":"The name servers of a domain and whether its zone has a SOA record. One name server is a warning. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"ns_tool_api_v1_tools_ns_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain.","title":"Domain"},"description":"Domain."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/registration":{"get":{"tags":["Free DNS tools"],"summary":"Check when a domain's registration runs out","description":"When the registration of a domain runs out, from RDAP. Under 30 days left is a warning. A zone with no RDAP service answers skipped. \n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools; identical queries are answered from a 60-second cache. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"registration_tool_api_v1_tools_registration_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Domain.","title":"Domain"},"description":"Domain."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraToolOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/tools/header":{"post":{"tags":["Free DNS tools"],"summary":"Analyze the headers of an email","description":"Send the headers of a received message as JSON `{\"headers\": \"...\"}` or as text/plain. Returns the route (Received hops oldest first, with timestamps, delays, TLS and clock skew), the receiver's verdict from the topmost Authentication-Results (the others listed apart), From / DKIM d= / Return-Path alignment, DKIM-Signature tags, ARC sets, Date and Message-ID checks, List-Unsubscribe and one-click, and spam filter headers. No DNS, and no signature is verified (`signatures_verified` is false). Anything after the first empty line is dropped unread; at most 128 KB of headers. The headers are processed in memory and not stored, logged or cached, and a 422 never quotes them.\n\nFree, no key. Limited to 30 requests a minute and 300 a day per client IP across all the tools. Any completed check is 200, including \"no record\" and \"lookup failed\"; `status` and `findings` carry the verdict. Each finding has a stable `code`, a `level` and `params`; `message` is the English sentence built from them.","operationId":"header_tool_api_v1_tools_header_post","requestBody":{"content":{"application/json":{"schema":{"properties":{"headers":{"type":"string","description":"The message headers, as copied from Show original or View source. Anything after the first empty line (the body) is dropped unread."}},"type":"object","required":["headers"]}},"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/mailtester__api__tools__HeaderOut"}}}},"422":{"description":"The input is not something we can look up (detail.code says which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}},"429":{"description":"Too many requests from this address; Retry-After says when to come back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}}}}}},"/api/v1/infra/check":{"get":{"tags":["Infra checks"],"summary":"Check a domain's mail infrastructure","description":"SPF, DKIM, DMARC, PTR, blocklists, MX and STARTTLS, with MTA-STS, TLS-RPT, BIMI, DNSSEC, DANE, name servers and the registration as advice, all without a message. With `diff=true` the answer says what changed since your last run. A completed check is 200; `ok`, `status` and `not_checked` carry the verdict.","operationId":"check_api_v1_infra_check_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"}},{"name":"ip","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Sending address, up to 6.","default":[],"title":"Ip"},"description":"Sending address, up to 6."},{"name":"selector","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Selector, up to 10.","default":[],"title":"Selector"},"description":"Selector, up to 10."},{"name":"helo","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Helo"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Account"}},{"name":"checks","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sections, comma separated.","title":"Checks"},"description":"Sections, comma separated."},{"name":"diff","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Diff"}},{"name":"baseline","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Baseline"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"7d or an ISO 8601 date.","title":"Since"},"description":"7d or an ISO 8601 date."},{"name":"fresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraOut"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/infra/runs/{public_id}":{"get":{"tags":["Infra checks"],"summary":"One stored run","description":"A run made with a key opens only with that key; otherwise 404.","operationId":"read_run_api_v1_infra_runs__public_id__get","parameters":[{"name":"public_id","in":"path","required":true,"schema":{"type":"string","title":"Public Id"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Account"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/infra/domains/{domain}/runs":{"get":{"tags":["Infra checks"],"summary":"Your runs of a domain, newest first","description":"Runs of the caller only: a key, or the hash of the address.","operationId":"list_runs_api_v1_infra_domains__domain__runs_get","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","title":"Domain"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Account"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsOut"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/infra/diff":{"get":{"tags":["Infra checks"],"summary":"What changed between two runs","description":"Needs access to both runs; otherwise 404.","operationId":"diff_runs_api_v1_infra_diff_get","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Account"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraDiff"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolErrorOut"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/infra/checks":{"get":{"tags":["Infra checks"],"summary":"The sections, their weights and the limits","description":"Static: what /infra/check runs and what it may be asked for.","operationId":"catalogue_api_v1_infra_checks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecksOut"}}}}}}},"/api/v1/inbox":{"post":{"summary":"Create Inbox","operationId":"create_inbox_api_v1_inbox_post","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}},{"name":"probe","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Probe"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Account"}},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":253,"pattern":"^(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z0-9-]{2,63}$"},{"type":"null"}],"title":"Domain"}},{"name":"sender","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320,"pattern":"^[^@\\s]{1,64}@(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z0-9-]{2,63}$"},{"type":"null"}],"title":"Sender"}},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"enum":["standard","own","wordpress"],"type":"string"},{"type":"null"}],"title":"Variant"}},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"enum":["mailbox","site","store"],"type":"string"},{"type":"null"}],"title":"Path"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$"},{"type":"null"}],"title":"Email"}},{"name":"mailer","in":"query","required":false,"schema":{"anyOf":[{"enum":["mail","smtp","sendmail","qmail","api","other"],"type":"string"},{"type":"null"}],"title":"Mailer"}},{"name":"smtp_host","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":253,"pattern":"^(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z0-9-]{2,63}$"},{"type":"null"}],"title":"Smtp Host"}},{"name":"smtp_plugin","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$"},{"type":"null"}],"title":"Smtp Plugin"}},{"name":"envelope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320,"pattern":"^[^@\\s]{1,64}@(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z0-9-]{2,63}$"},{"type":"null"}],"title":"Envelope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tests/{slug}/locale":{"put":{"summary":"Set Locale","description":"Change which language the report and the AI plan will be written in.\n\nThe language is fixed when the address is handed out, because the SMTP\nconnection that arrives ten minutes later carries no hint of who is\nwaiting for it. That leaves one gap: somebody reserves an address, then\nswitches the page to their own language before sending. Without this they\nwould read a German page and get an English plan.\n\nOnly while the reservation is unused. Once the mail has arrived the\nanalysis is either running or done, and rewriting the language then would\nmean re-running it — a different operation, and one nobody asked for.\n\nThe slug is the capability, as everywhere else here: whoever holds the\naddress holds the test. There is nothing to leak — a wrong guess sets the\nlanguage of a report the guesser cannot read.","operationId":"set_locale_api_v1_tests__slug__locale_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocaleIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tests/{slug}/status":{"get":{"summary":"Test Status","description":"Where the analysis is. With `wait`, hold the request until it gets there.\n\nA panel plugin would otherwise poll every couple of seconds for a minute or\nfive, from thousands of servers. `until=checks` returns once the checks are\nin; `until=plan` waits for the AI plan as well. Past `wait` seconds it\nanswers with whatever there is, the same as without it.","operationId":"test_status_api_v1_tests__slug__status_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"wait","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":0,"default":0,"title":"Wait"}},{"name":"until","in":"query","required":false,"schema":{"enum":["checks","plan"],"type":"string","default":"checks","title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tests/{slug}/message":{"get":{"summary":"Message","description":"The message itself: headers, both bodies, and the source verbatim.\n\nSeparate from the report rather than a field on it, because the report is\npolled every two seconds while the analysis runs and a megabyte of source\non every poll would be paid for by every user to serve the few who open the\npanel. This is fetched once, when they do.","operationId":"message_api_v1_tests__slug__message_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageViewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tests/{slug}":{"get":{"summary":"Report","operationId":"report_api_v1_tests__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AlignedDkim":{"properties":{"d":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"D"},"s":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified","description":"From the receiver's verdict; null when it says nothing about this signature."},"aligned":{"anyOf":[{"type":"string","enum":["strict","relaxed"]},{"type":"null"}],"title":"Aligned"}},"type":"object","required":["d","s","verified","aligned"],"title":"AlignedDkim"},"AlignedDmarc":{"properties":{"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"}},"type":"object","required":["result","policy","disposition"],"title":"AlignedDmarc"},"AlignedSpf":{"properties":{"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"aligned":{"anyOf":[{"type":"string","enum":["strict","relaxed"]},{"type":"null"}],"title":"Aligned"}},"type":"object","required":["domain","result","aligned"],"title":"AlignedSpf"},"ArcSet":{"properties":{"i":{"type":"integer","title":"I"},"cv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cv"},"seal_d":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seal D"},"seal_s":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seal S"},"ams_d":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ams D"},"ams_s":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ams S"},"authserv_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authserv Id"}},"type":"object","required":["i","cv","seal_d","seal_s","ams_d","ams_s","authserv_id"],"title":"ArcSet"},"AttachmentOut":{"properties":{"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"inline":{"type":"boolean","title":"Inline"}},"type":"object","required":["filename","content_type","size_bytes","inline"],"title":"AttachmentOut"},"AuthOther":{"properties":{"authserv_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authserv Id"},"results":{"items":{"$ref":"#/components/schemas/AuthResult"},"type":"array","title":"Results"},"header":{"type":"string","title":"Header"}},"type":"object","required":["authserv_id","results","header"],"title":"AuthOther"},"AuthResult":{"properties":{"method":{"type":"string","title":"Method"},"result":{"type":"string","title":"Result"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"props":{"additionalProperties":{"type":"string"},"type":"object","title":"Props"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["method","result","reason","props","comment"],"title":"AuthResult"},"AuthResults":{"properties":{"authserv_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authserv Id"},"results":{"items":{"$ref":"#/components/schemas/AuthResult"},"type":"array","title":"Results"}},"type":"object","required":["authserv_id","results"],"title":"AuthResults"},"BimiCertSubject":{"properties":{"cn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cn"},"o":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"O"},"c":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"C"}},"type":"object","required":["cn","o","c"],"title":"BimiCertSubject"},"BimiCertificate":{"properties":{"url":{"type":"string","title":"Url"},"type":{"anyOf":[{"type":"string","enum":["VMC","CMC"]},{"type":"null"}],"title":"Type","description":"From the mark type, when the certificate states one."},"subject":{"$ref":"#/components/schemas/BimiCertSubject"},"issuer":{"type":"string","title":"Issuer"},"not_before":{"type":"string","title":"Not Before"},"not_after":{"type":"string","title":"Not After"},"days_left":{"type":"integer","title":"Days Left"},"san":{"items":{"type":"string"},"type":"array","title":"San"},"mark_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mark Type"},"eku_bimi":{"type":"boolean","title":"Eku Bimi"},"logotype":{"type":"boolean","title":"Logotype","description":"Has the RFC 3709 logotype extension."},"logo_matches":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logo Matches","description":"The embedded logo equals the file at l=; null when either was not readable."},"chain_length":{"type":"integer","title":"Chain Length"}},"type":"object","required":["url","type","subject","issuer","not_before","not_after","days_left","san","mark_type","eku_bimi","logotype","logo_matches","chain_length"],"title":"BimiCertificate"},"BimiDmarc":{"properties":{"found_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Found At"},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy","description":"The policy that applies to the domain."},"pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pct"},"sp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sp"}},"type":"object","required":["found_at","record","policy","pct","sp"],"title":"BimiDmarc"},"BimiLogo":{"properties":{"url":{"type":"string","title":"Url"},"final_url":{"type":"string","title":"Final Url"},"status_code":{"type":"integer","title":"Status Code"},"content_type":{"type":"string","title":"Content Type"},"bytes":{"type":"integer","title":"Bytes"},"sha256":{"type":"string","title":"Sha256"},"base_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Profile"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"view_box":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"View Box"},"square":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Square"},"data_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Uri","description":"data:image/svg+xml;base64,... for files up to 64 KiB that parse as SVG. Show it only through <img src>, never inline."}},"type":"object","required":["url","final_url","status_code","content_type","bytes","sha256","base_profile","version","title","view_box","square","data_uri"],"title":"BimiLogo"},"BimiOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error"],"title":"Status","description":"Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"steps":{"$ref":"#/components/schemas/BimiSteps"},"name":{"type":"string","title":"Name"},"found_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Found At","description":"Domain whose record applies; the organizational domain when the exact name has none."},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"tags":{"$ref":"#/components/schemas/BimiTags"},"dmarc":{"$ref":"#/components/schemas/BimiDmarc"},"logo":{"anyOf":[{"$ref":"#/components/schemas/BimiLogo"},{"type":"null"}]},"certificate":{"anyOf":[{"$ref":"#/components/schemas/BimiCertificate"},{"type":"null"}]}},"type":"object","required":["tool","query","checked_at","duration_ms","status","findings","steps","name","found_at","record","tags","dmarc","logo","certificate"],"title":"BimiOut"},"BimiSteps":{"properties":{"dmarc":{"type":"string","enum":["pass","warn","fail","error","none","skipped"],"title":"Dmarc"},"record":{"type":"string","enum":["pass","warn","fail","error","none","skipped"],"title":"Record"},"logo":{"type":"string","enum":["pass","warn","fail","error","none","skipped"],"title":"Logo"},"certificate":{"type":"string","enum":["pass","warn","fail","error","none","skipped"],"title":"Certificate","description":"\"none\" when the record has no a=."}},"type":"object","required":["dmarc","record","logo","certificate"],"title":"BimiSteps"},"BimiTags":{"properties":{"v":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"},"l":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"L"},"a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"A"},"avp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avp"},"lps":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lps"}},"type":"object","title":"BimiTags"},"BlocklistCounts":{"properties":{"listed":{"type":"integer","title":"Listed"},"clean":{"type":"integer","title":"Clean"},"error":{"type":"integer","title":"Error","description":"Lists that failed or refused to answer."}},"type":"object","required":["listed","clean","error"],"title":"BlocklistCounts"},"BlocklistOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error"],"title":"Status","description":"Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"kind":{"type":"string","enum":["ip","domain"],"title":"Kind"},"lists":{"items":{"$ref":"#/components/schemas/BlocklistRow"},"type":"array","title":"Lists"},"counts":{"$ref":"#/components/schemas/BlocklistCounts"}},"type":"object","required":["tool","query","checked_at","duration_ms","status","findings","kind","lists","counts"],"title":"BlocklistOut"},"BlocklistRow":{"properties":{"name":{"type":"string","title":"Name"},"zone":{"type":"string","title":"Zone"},"kind":{"type":"string","enum":["ip","domain"],"title":"Kind"},"status":{"type":"string","enum":["listed","clean","error","refused"],"title":"Status"},"codes":{"items":{"type":"string"},"type":"array","title":"Codes","description":"A records the list returned."},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["name","zone","kind","status","codes","detail"],"title":"BlocklistRow"},"CheckOut":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","title":"Category"},"status":{"type":"string","title":"Status"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"summary_localised":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Localised"},"weight_compat":{"type":"number","title":"Weight Compat"},"weight_ours":{"type":"number","title":"Weight Ours"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"},"citations":{"additionalProperties":true,"type":"object","title":"Citations","default":{}}},"type":"object","required":["id","category","status","title","summary","weight_compat","weight_ours","evidence"],"title":"CheckOut"},"CheckRow":{"properties":{"name":{"type":"string","title":"Name"},"weight":{"type":"integer","title":"Weight","description":"Share of the score; 0 means advisory."},"core":{"type":"boolean","title":"Core"}},"type":"object","required":["name","weight","core"],"title":"CheckRow"},"ChecksOut":{"properties":{"sections":{"items":{"$ref":"#/components/schemas/CheckRow"},"type":"array","title":"Sections"},"score_version":{"type":"integer","title":"Score Version"},"schema_version":{"type":"integer","title":"Schema Version"},"limits":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Limits"}},"type":"object","required":["sections","score_version","schema_version","limits"],"title":"ChecksOut"},"CreatePlacement":{"properties":{"public_results_accepted":{"type":"boolean","title":"Public Results Accepted","default":false},"score_slug":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Score Slug"},"account":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Account"}},"type":"object","title":"CreatePlacement"},"DiffBaseline":{"properties":{"id":{"type":"string","title":"Id"},"checked_at":{"type":"string","title":"Checked At"}},"type":"object","required":["id","checked_at"],"title":"DiffBaseline"},"DiffChange":{"properties":{"path":{"type":"string","title":"Path","description":"dkim.key.mail.sha256, dmarc.policy, mx.hosts and so on."},"section":{"type":"string","title":"Section"},"kind":{"type":"string","enum":["added","removed","changed"],"title":"Kind"},"severity":{"type":"string","enum":["critical","warning","info"],"title":"Severity"},"effect":{"type":"string","enum":["worsened","improved","neutral"],"title":"Effect"},"from":{"title":"From"},"to":{"title":"To"}},"type":"object","required":["path","section","kind","severity","effect","from","to"],"title":"DiffChange"},"DkimKey":{"properties":{"type":{"anyOf":[{"type":"string","enum":["rsa","ed25519"]},{"type":"null"}],"title":"Type"},"bits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bits"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["type","bits","revoked"],"title":"DkimKey"},"DkimOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error"],"title":"Status","description":"Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"name":{"type":"string","title":"Name"},"cname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cname","description":"Where a CNAME at the name pointed."},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"tags":{"$ref":"#/components/schemas/DkimTags"},"key":{"$ref":"#/components/schemas/DkimKey"}},"type":"object","required":["tool","query","checked_at","duration_ms","status","findings","name","cname","record","tags","key"],"title":"DkimOut"},"DkimSignature":{"properties":{"d":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"D"},"s":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S"},"a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"A"},"c":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"C"},"h":{"items":{"type":"string"},"type":"array","title":"H"},"l":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"L"},"t":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"},"x":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X"},"i":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"I"}},"type":"object","required":["d","s","a","c","h","l","t","x","i"],"title":"DkimSignature"},"DkimTags":{"properties":{"v":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"},"k":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"K"},"p":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"P"},"h":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"H"},"s":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S"},"t":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"},"n":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"N"}},"type":"object","title":"DkimTags"},"DmarcOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error"],"title":"Status","description":"Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"name":{"type":"string","title":"Name"},"found_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Found At","description":"Domain whose _dmarc record applies; the organizational domain when the exact name has none (RFC 7489 §6.6.3)."},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"tags":{"$ref":"#/components/schemas/DmarcTags"},"policy":{"anyOf":[{"type":"string","enum":["none","quarantine","reject"]},{"type":"null"}],"title":"Policy","description":"The policy that applies to the domain asked about: sp= when the record was inherited and has one, p= otherwise."}},"type":"object","required":["tool","query","checked_at","duration_ms","status","findings","name","found_at","record","tags","policy"],"title":"DmarcOut"},"DmarcTags":{"properties":{"v":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"},"p":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"P"},"sp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sp"},"np":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Np"},"pct":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pct"},"adkim":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adkim"},"aspf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aspf"},"rua":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Rua"},"ruf":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ruf"},"fo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fo"},"ri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ri"},"rf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rf"}},"type":"object","title":"DmarcTags"},"EngineOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"},"scores":{"type":"boolean","title":"Scores"}},"type":"object","required":["id","title","status","summary","evidence","scores"],"title":"EngineOut"},"Finding":{"properties":{"code":{"type":"string","title":"Code","description":"Stable identifier, e.g. spf.too_many_lookups. The English template for every code is in /i18n/tools/findings.en.json on the website."},"level":{"type":"string","enum":["pass","info","warn","fail","error"],"title":"Level"},"params":{"additionalProperties":true,"type":"object","title":"Params","description":"Values the message is built from."},"message":{"type":"string","title":"Message","description":"The English sentence, params filled in."}},"type":"object","required":["code","level","params","message"],"title":"Finding"},"FixOut":{"properties":{"id":{"type":"string","title":"Id"},"fix":{"additionalProperties":true,"type":"object","title":"Fix"},"gain_compat":{"type":"number","title":"Gain Compat"},"gain_ours":{"type":"number","title":"Gain Ours"},"source":{"type":"string","title":"Source"}},"type":"object","required":["id","fix","gain_compat","gain_ours","source"],"title":"FixOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeaderAlignment":{"properties":{"from_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Domain"},"dkim":{"items":{"$ref":"#/components/schemas/AlignedDkim"},"type":"array","title":"Dkim"},"spf":{"$ref":"#/components/schemas/AlignedSpf"},"dmarc":{"$ref":"#/components/schemas/AlignedDmarc"}},"type":"object","required":["from_domain","dkim","spf","dmarc"],"title":"HeaderAlignment"},"HeaderArc":{"properties":{"instances":{"type":"integer","title":"Instances"},"valid_structure":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Valid Structure","description":"Numbering, completeness and cv= only; no signature is verified."},"sets":{"items":{"$ref":"#/components/schemas/ArcSet"},"type":"array","title":"Sets"}},"type":"object","required":["instances","valid_structure","sets"],"title":"HeaderArc"},"HeaderAuth":{"properties":{"verdict":{"anyOf":[{"$ref":"#/components/schemas/AuthResults"},{"type":"null"}],"description":"The topmost Authentication-Results: the receiver's own."},"other":{"items":{"$ref":"#/components/schemas/AuthOther"},"type":"array","title":"Other","description":"Every other Authentication-Results, written before the receiver and not to be trusted."}},"type":"object","required":["verdict","other"],"title":"HeaderAuth"},"HeaderDelivery":{"properties":{"first":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First"},"last":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last"},"total_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total S"},"date_skew_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Date Skew S","description":"First Received time minus the Date header."},"hops":{"type":"integer","title":"Hops"}},"type":"object","required":["first","last","total_s","date_skew_s","hops"],"title":"HeaderDelivery"},"HeaderField":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["name","value"],"title":"HeaderField"},"HeaderHop":{"properties":{"index":{"type":"integer","title":"Index","description":"1 is the oldest hop: the list runs from the sender to the receiver."},"from_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Host"},"from_rdns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Rdns"},"from_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Ip"},"by_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By Host"},"with":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"With"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"For"},"tls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tls","description":"null for hops inside one provider, where the header says nothing either way."},"tls_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tls Detail"},"timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp"},"delay_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delay S","description":"Seconds since the previous hop's timestamp; Received dates have one-second precision."},"clock_skew":{"type":"boolean","title":"Clock Skew"},"raw":{"type":"string","title":"Raw"}},"type":"object","required":["index","from_host","from_rdns","from_ip","by_host","with","id","for","tls","tls_detail","timestamp","delay_s","clock_skew","raw"],"title":"HeaderHop"},"HeaderSummary":{"properties":{"from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"from_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Domain"},"return_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Path"},"return_path_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Path Domain"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"MIME encoded-words decoded."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","description":"The Date header, ISO 8601 UTC."},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"message_id_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id Domain"}},"type":"object","required":["from","from_name","from_domain","return_path","return_path_domain","to","subject","date","message_id","message_id_domain"],"title":"HeaderSummary"},"HeaderUnsubscribe":{"properties":{"present":{"type":"boolean","title":"Present"},"https":{"type":"boolean","title":"Https"},"mailto":{"type":"boolean","title":"Mailto"},"one_click":{"type":"boolean","title":"One Click"},"signed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Signed","description":"Listed in h= of one DKIM signature (with List-Unsubscribe-Post when present)."}},"type":"object","required":["present","https","mailto","one_click","signed"],"title":"HeaderUnsubscribe"},"InboxResponse":{"properties":{"address":{"type":"string","title":"Address"},"slug":{"type":"string","title":"Slug"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["address","slug","expires_at"],"title":"InboxResponse"},"InfraDiff":{"properties":{"baseline":{"anyOf":[{"$ref":"#/components/schemas/DiffBaseline"},{"type":"null"}]},"first_run":{"type":"boolean","title":"First Run"},"changed":{"type":"boolean","title":"Changed","description":"A change of severity critical or warning."},"worsened":{"type":"boolean","title":"Worsened"},"status_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status From"},"score_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score From"},"changes":{"items":{"$ref":"#/components/schemas/DiffChange"},"type":"array","title":"Changes"},"not_compared":{"items":{"$ref":"#/components/schemas/NotCompared"},"type":"array","title":"Not Compared"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"storage_unavailable when nothing could be read or kept."}},"type":"object","required":["baseline","first_run","changed","worsened","status_from","score_from","changes","not_compared"],"title":"InfraDiff"},"InfraIp":{"properties":{"ip":{"type":"string","title":"Ip"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"managed":{"type":"boolean","title":"Managed","description":"Run by a provider, so not checked."}},"type":"object","required":["ip","sources","managed"],"title":"InfraIp"},"InfraOut":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Null when the run was not stored."},"domain":{"type":"string","title":"Domain"},"checked_at":{"type":"string","title":"Checked At"},"duration_ms":{"type":"integer","title":"Duration Ms"},"schema_version":{"type":"integer","title":"Schema Version"},"score_version":{"type":"integer","title":"Score Version"},"cached":{"type":"boolean","title":"Cached"},"stored":{"type":"boolean","title":"Stored"},"ok":{"type":"boolean","title":"Ok"},"status":{"type":"string","title":"Status"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"coverage":{"additionalProperties":{"type":"integer"},"type":"object","title":"Coverage"},"summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Summary"},"ips":{"items":{"$ref":"#/components/schemas/InfraIp"},"type":"array","title":"Ips"},"sections":{"additionalProperties":{"$ref":"#/components/schemas/InfraSection"},"type":"object","title":"Sections"},"not_checked":{"items":{"$ref":"#/components/schemas/NotChecked"},"type":"array","title":"Not Checked"},"diff":{"anyOf":[{"$ref":"#/components/schemas/InfraDiff"},{"type":"null"}],"description":"Null unless diff, since or baseline asked for it."}},"type":"object","required":["id","domain","checked_at","duration_ms","schema_version","score_version","cached","stored","ok","status","score","coverage","summary","ips","sections","not_checked","diff"],"title":"InfraOut"},"InfraSection":{"properties":{"status":{"type":"string","title":"Status","description":"pass, warn, fail, error, unknown or skipped."},"core":{"type":"boolean","title":"Core","description":"Counts toward status, ok and score."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["status","core","findings","data"],"title":"InfraSection"},"InfraToolOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error","unknown","skipped"],"title":"Status"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"}},"additionalProperties":true,"type":"object","required":["tool","query","checked_at","duration_ms","status","findings"],"title":"InfraToolOut","description":"The tools shared with /infra/check: their fields are the section's data."},"KeyIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"}},"type":"object","required":["email"],"title":"KeyIn"},"KeyOut":{"properties":{"key":{"type":"string","title":"Key"},"email":{"type":"string","title":"Email"}},"type":"object","required":["key","email"],"title":"KeyOut"},"LocaleIn":{"properties":{"lang":{"type":"string","title":"Lang"}},"type":"object","required":["lang"],"title":"LocaleIn","description":"Which language the reader is on now.\n\nSent when somebody switches language on a reservation they have not used\nyet. Not validated to a fixed set here: locales.normalise falls back to the\nbase language and then to English, so an unknown tag is a page in English\nrather than a 422 the visitor cannot act on."},"MeOut":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"key_prefix":{"type":"string","title":"Key Prefix"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["email","key_prefix","created_at"],"title":"MeOut"},"MessageOut":{"properties":{"subject":{"type":"string","title":"Subject"},"from_addr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Addr"},"bounce_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bounce Address"},"size_bytes":{"type":"integer","title":"Size Bytes"},"has_html":{"type":"boolean","title":"Has Html"},"has_text":{"type":"boolean","title":"Has Text"},"forged_headers":{"additionalProperties":true,"type":"object","title":"Forged Headers"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},"type":"object","required":["subject","from_addr","bounce_address","size_bytes","has_html","has_text","forged_headers"],"title":"MessageOut"},"MessageViewOut":{"properties":{"available":{"type":"boolean","title":"Available"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"size_bytes":{"type":"integer","title":"Size Bytes"},"headers":{"items":{"$ref":"#/components/schemas/mailtester__api__schemas__HeaderOut"},"type":"array","title":"Headers"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"text_truncated":{"type":"boolean","title":"Text Truncated"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"html_truncated":{"type":"boolean","title":"Html Truncated"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_truncated":{"type":"boolean","title":"Source Truncated"}},"type":"object","required":["available","unavailable_reason","size_bytes","headers","text","text_truncated","html","html_truncated","attachments","source","source_truncated"],"title":"MessageViewOut","description":"The raw message, for reading. Absent once its retention window closes."},"MxAddresses":{"properties":{"a":{"items":{"type":"string"},"type":"array","title":"A"},"aaaa":{"items":{"type":"string"},"type":"array","title":"Aaaa"}},"type":"object","required":["a","aaaa"],"title":"MxAddresses"},"MxHint":{"properties":{"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"}},"type":"object","required":["record"],"title":"MxHint"},"MxOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error"],"title":"Status","description":"Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"records":{"items":{"$ref":"#/components/schemas/MxRecord"},"type":"array","title":"Records","description":"Sorted by preference, then host."},"implicit":{"type":"boolean","title":"Implicit","description":"No MX: senders use the domain's own address records (RFC 5321 §5.1)."},"implicit_addresses":{"$ref":"#/components/schemas/MxAddresses"},"null_mx":{"type":"boolean","title":"Null Mx","description":"The domain publishes MX 0 . (RFC 7505)."},"mta_sts":{"$ref":"#/components/schemas/MxHint"},"tls_rpt":{"$ref":"#/components/schemas/MxHint"}},"type":"object","required":["tool","query","checked_at","duration_ms","status","findings","records","implicit","implicit_addresses","null_mx","mta_sts","tls_rpt"],"title":"MxOut"},"MxRecord":{"properties":{"preference":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Preference"},"host":{"type":"string","title":"Host","description":"Exchange host, lowercased; \"\" for a null MX."},"cname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cname","description":"Where a CNAME at the host pointed."},"addresses":{"$ref":"#/components/schemas/MxAddresses"},"status":{"type":"string","enum":["ok","not_found","no_address","private","error","ip_literal","null"],"title":"Status"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Who runs the host, when the name says so."}},"type":"object","required":["preference","host","cname","addresses","status","provider"],"title":"MxRecord"},"NotChecked":{"properties":{"check":{"type":"string","title":"Check"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["check","reason"],"title":"NotChecked"},"NotCompared":{"properties":{"path":{"type":"string","title":"Path"},"reason":{"type":"string","enum":["lookup_failed","not_requested"],"title":"Reason"}},"type":"object","required":["path","reason"],"title":"NotCompared"},"ReportOut":{"properties":{"report_url":{"type":"string","title":"Report Url","default":""},"generated_by":{"type":"string","title":"Generated By","default":"Email Spam Tester (https://email-spam-tester.com)"},"slug":{"type":"string","title":"Slug"},"analysis_status":{"type":"string","title":"Analysis Status"},"ai_status":{"type":"string","title":"Ai Status"},"score_compat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Compat"},"score_ours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Ours"},"subscores":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Subscores"},"scoring_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Version"},"complete":{"type":"boolean","title":"Complete"},"errored_checks":{"items":{"type":"string"},"type":"array","title":"Errored Checks"},"ai_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Verdict"},"ai_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Confidence"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"checks_ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checks Ready At"},"message":{"anyOf":[{"$ref":"#/components/schemas/MessageOut"},{"type":"null"}]},"panel":{"items":{"$ref":"#/components/schemas/EngineOut"},"type":"array","title":"Panel"},"checks":{"items":{"$ref":"#/components/schemas/CheckOut"},"type":"array","title":"Checks"},"fixes":{"items":{"$ref":"#/components/schemas/FixOut"},"type":"array","title":"Fixes"},"translating":{"type":"boolean","title":"Translating","default":false}},"type":"object","required":["slug","analysis_status","ai_status","score_compat","score_ours","subscores","scoring_version","complete","errored_checks","ai_verdict","ai_confidence","received_at","checks_ready_at","message","panel","checks","fixes"],"title":"ReportOut"},"RunRow":{"properties":{"id":{"type":"string","title":"Id"},"checked_at":{"type":"string","title":"Checked At"},"status":{"type":"string","title":"Status"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"changes_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Changes Count"}},"type":"object","required":["id","checked_at","status","score","changes_count"],"title":"RunRow"},"RunsOut":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/RunRow"},"type":"array","title":"Runs"}},"type":"object","required":["runs"],"title":"RunsOut"},"SpamHeader":{"properties":{"header":{"type":"string","title":"Header"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine"},"flag":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Flag"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"value":{"type":"string","title":"Value"}},"type":"object","required":["header","engine","flag","score","threshold","value"],"title":"SpamHeader"},"SpfLookups":{"properties":{"count":{"type":"integer","title":"Count"},"limit":{"type":"integer","title":"Limit"},"void":{"type":"integer","title":"Void"}},"type":"object","required":["count","limit","void"],"title":"SpfLookups"},"SpfNode":{"properties":{"domain":{"type":"string","title":"Domain"},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"lookups":{"type":"integer","title":"Lookups","description":"Lookups this record and everything below it cost."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"children":{"items":{"$ref":"#/components/schemas/SpfNode"},"type":"array","title":"Children"}},"type":"object","required":["domain","record","lookups","error","children"],"title":"SpfNode"},"SpfOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error"],"title":"Status","description":"Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"records":{"items":{"type":"string"},"type":"array","title":"Records","description":"Every v=spf1 record found; more than one is a permerror."},"terms":{"items":{"$ref":"#/components/schemas/SpfTerm"},"type":"array","title":"Terms"},"lookups":{"$ref":"#/components/schemas/SpfLookups"},"tree":{"$ref":"#/components/schemas/SpfNode"}},"type":"object","required":["tool","query","checked_at","duration_ms","status","findings","record","records","terms","lookups","tree"],"title":"SpfOut"},"SpfTerm":{"properties":{"qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualifier","description":"+, -, ~ or ?; null for a modifier."},"mechanism":{"type":"string","title":"Mechanism","description":"Mechanism or modifier name, lowercased."},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"lookups":{"type":"integer","title":"Lookups","description":"DNS lookups this term costs, its include subtree included."}},"type":"object","required":["qualifier","mechanism","value","lookups"],"title":"SpfTerm"},"StatusOut":{"properties":{"slug":{"type":"string","title":"Slug"},"analysis_status":{"type":"string","title":"Analysis Status"},"ai_status":{"type":"string","title":"Ai Status"},"checks_done":{"type":"integer","title":"Checks Done"},"checks_total":{"type":"integer","title":"Checks Total"}},"type":"object","required":["slug","analysis_status","ai_status","checks_done","checks_total"],"title":"StatusOut"},"ToolError":{"properties":{"code":{"type":"string","enum":["invalid_domain","invalid_selector","invalid_target","invalid_ip","invalid_check","invalid_since","unknown_baseline","account_required","invalid_headers","rate_limited","busy","storage_unavailable"],"title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"ToolError"},"ToolErrorOut":{"properties":{"detail":{"$ref":"#/components/schemas/ToolError"}},"type":"object","required":["detail"],"title":"ToolErrorOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"mailtester__api__schemas__HeaderOut":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"forged":{"type":"boolean","title":"Forged"}},"type":"object","required":["name","value","forged"],"title":"HeaderOut"},"mailtester__api__tools__HeaderOut":{"properties":{"tool":{"type":"string","title":"Tool"},"query":{"additionalProperties":{"type":"string"},"type":"object","title":"Query","description":"The inputs after normalisation."},"checked_at":{"type":"string","title":"Checked At","description":"When the lookups ran, ISO 8601 UTC."},"duration_ms":{"type":"integer","title":"Duration Ms"},"status":{"type":"string","enum":["pass","warn","fail","error"],"title":"Status","description":"Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array","title":"Findings"},"signatures_verified":{"type":"boolean","title":"Signatures Verified","description":"Always false: there is no body, so DKIM and ARC signatures are read, not verified. Pass and fail come from the receiver's Authentication-Results."},"summary":{"$ref":"#/components/schemas/HeaderSummary"},"hops":{"items":{"$ref":"#/components/schemas/HeaderHop"},"type":"array","title":"Hops"},"delivery":{"$ref":"#/components/schemas/HeaderDelivery"},"delivering_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivering Ip"},"auth":{"$ref":"#/components/schemas/HeaderAuth"},"alignment":{"$ref":"#/components/schemas/HeaderAlignment"},"dkim_signatures":{"items":{"$ref":"#/components/schemas/DkimSignature"},"type":"array","title":"Dkim Signatures"},"arc":{"$ref":"#/components/schemas/HeaderArc"},"list_unsubscribe":{"$ref":"#/components/schemas/HeaderUnsubscribe"},"spam":{"items":{"$ref":"#/components/schemas/SpamHeader"},"type":"array","title":"Spam"},"fields":{"items":{"$ref":"#/components/schemas/HeaderField"},"type":"array","title":"Fields"}},"type":"object","required":["tool","query","checked_at","duration_ms","status","findings","signatures_verified","summary","hops","delivery","delivering_ip","auth","alignment","dkim_signatures","arc","list_unsubscribe","spam","fields"],"title":"HeaderOut"}}}}