Skip to content

Domain check

Grade the email, DNS and web security of a domain from public information.

Grade a domain. Operation id: getDomainCheck.

Checks mail servers, SPF, DMARC, MTA-STS, TLS reporting, DKIM, DNSSEC, CAA and web security headers using public DNS (DNS over HTTPS) and three web requests: the home page over HTTPS and over HTTP, and the MTA-STS policy file. Redirects are never followed, bodies are capped at 64 KB and every request times out after 8 seconds.

The domain is validated before any lookup: no IP addresses, URLs, ports, single labels or internal names. Internationalised names are accepted and checked in their ASCII (punycode) form.

Complete reports are cached for ten minutes per domain (cache-control: public, max-age=600). Incomplete reports are not cached and carry cache-control: no-store.

Name In Required Type Description
domain query yes string A bare domain name, for example example.com.
Terminal window
curl "https://api.kytheos.com/v1/domain-check?domain=example.com"

The domain report.

Body: DomainCheckReport.

The input is missing, malformed or not allowed. The error text says what to change.

Body: Error.

A domain check with a URL instead of a domain:

{
"error": "Enter only the domain name, without http://, paths or ports."
}

A body that is not the JSON the endpoint expects:

{
"error": "Send JSON like {\"prompt\": \"You are the support assistant for ...\"}."
}

The client IP address went over the rate limit for this endpoint. Wait and try again.

Body: Error.

Headers:

  • retry-after: Seconds to wait before trying again. Always 60.

Example:

{
"error": "Too many checks from your network. Please wait a minute and try again."
}

Grade a domain (JSON body). Operation id: postDomainCheck.

The same check as GET /v1/domain-check, with the domain in a JSON body. Unknown fields in the body are ignored.

Content type application/json: DomainCheckRequest.

Example:

{
"domain": "example.com"
}
Terminal window
curl -X POST "https://api.kytheos.com/v1/domain-check" \
-H "content-type: application/json" \
-d '{"domain":"example.com"}'

The domain report.

Body: DomainCheckReport.

The input is missing, malformed or not allowed. The error text says what to change.

Body: Error.

A domain check with a URL instead of a domain:

{
"error": "Enter only the domain name, without http://, paths or ports."
}

A body that is not the JSON the endpoint expects:

{
"error": "Send JSON like {\"prompt\": \"You are the support assistant for ...\"}."
}

The client IP address went over the rate limit for this endpoint. Wait and try again.

Body: Error.

Headers:

  • retry-after: Seconds to wait before trying again. Always 60.

Example:

{
"error": "Too many checks from your network. Please wait a minute and try again."
}