Skip to content

API

The API runs the same engines as the free tools and the command line. It is anonymous: there are no API keys yet, and limits apply for each client IP address.

  • Base URL: https://api.kytheos.com
  • Format: JSON, except the secrets check upload (not available yet), which is a zip file
  • Specification: openapi.yaml (OpenAPI 3.1). The reference is generated from it.
Method and path What it does
GET /health Confirms the API is running
GET or POST /v1/domain-check Grade a domain
GET /v1/lookalike Find registered lookalikes
POST /v1/guardian Check a link or message
POST /v1/prompt-check Check a system prompt
POST /v1/mcp-check Scan an MCP config
POST /v1/secrets-check Not available yet

Every error is JSON in one shape, and the HTTP status carries the meaning:

{ "error": "Enter only the domain name, without http://, paths or ports." }
Status Meaning
400 The input is missing, malformed or not allowed. The message says what to change.
404 No such route or scan.
413 The request body is larger than the endpoint accepts.
429 Too many requests from your network. Wait retry-after seconds (always 60).
502 The scanner backend did not answer (secrets check only, when available).
503 The feature is not available yet (secrets check today).

Write programs against the status code. The error text is for people and may change.

Every graded result has the same building blocks. A check has a status of pass, warn, fail, info or error, a severity, a summary, evidence and a fix. When any check has the status error, the score.grade is null and score.incomplete is true. Treat null as “could not be checked”, never as a pass.

Responses can gain new fields at any time. Ignore fields you do not know.

Only https://kytheos.com and https://www.kytheos.com get CORS headers. From anywhere else, call the API from a server or a script.

The version is in the path. A breaking change would ship as /v2, and /v1 would keep working through a notice period. The planned notice period is 12 months. Formal deprecation headers and a published policy are on the roadmap and are not in place yet.

These are planned and not part of the API today: API keys and higher limits, request ids, rate limit headers beyond retry-after, error responses in the problem details format, idempotency keys, and generated SDKs.