HTTP API

Public

POST /api/hit

Server ingest from @vector5/middleware. Same 202 / 404 contract as /api/event.

Body

HitIn
{
  "domain": "example.com",
  "method": "GET",
  "path": "/docs/middleware",
  "status": 200,
  "bytes": 18432,
  "ua": "Mozilla/5.0 (compatible; GPTBot/1.2)",
  "referer": "",
  "ip": "203.0.113.10"
}

If ua or ip is omitted, the API fills them from the incoming request. Classification runs with jsExecuted = false, which is how headless UAs become ai_agent instead of human.

Something off? Open an issue · Edit on GitHub