Skip to content

Overview

Version 1.0.0 of the specification. Base URL: https://api.kytheos.com.

The Kytheos API runs the same engines as the kytheos command line tool and the free tools on kytheos.com. It is anonymous: there are no API keys yet, and limits apply per client IP address.

This file describes the API exactly as it behaves today on api.kytheos.com. It is the source of truth for the API reference, and a test in this repository checks real engine output against the schemas below.

  • Every endpoint sits under /v1, except GET /health.
  • Requests and responses are JSON (application/json; charset=utf-8), except the secrets check upload, which is a zip file.
  • Errors are always {"error": "<message for people>"}, with the HTTP status code carrying the meaning. See the Error schema.
  • Checks return evidence and a fix. A check that could not be completed has the status error and is never read as a pass; a report with any such check has score.grade set to null.
  • Incomplete domain reports are never cached.
  • Responses that describe private input (Guardian, prompt check and MCP check) are never cached or logged: cache-control: no-store.
  • Any other path or method answers 404 with {"error": "Not found."}.

Browsers on https://kytheos.com and https://www.kytheos.com may call the API: those origins get access-control-allow-origin echoed back with vary: origin. Preflight OPTIONS requests answer 204 with access-control-allow-methods: GET, POST, access-control-allow-headers: content-type, x-kytheos-filename and access-control-max-age: 86400. Other origins get no CORS headers; the API is for servers, command line tools and scripts.

Every response carries x-content-type-options: nosniff, referrer-policy: no-referrer, strict-transport-security: max-age=63072000; includeSubDomains and content-security-policy: default-src 'none'; frame-ancestors 'none'.

Limits are per client IP address, over a 60 second window. The IP address is only the limiter key; it is never logged or stored. A limited request answers 429 with retry-after: 60. Cached answers do not count against the limit.

Endpoint Limit
domain-check 10 fresh checks a minute
lookalike 30 uncached pages a minute
guardian 20 checks a minute
prompt-check 20 checks a minute
mcp-check 20 checks a minute
secrets-check 5 scans a minute (when available)

The version in the path (/v1) changes only for breaking changes. New fields may be added to responses at any time, so clients must ignore fields they do not know.