HTTP API

HTTP API

Ingest is public. Reads take a Bearer API key. days and actor filter most query routes.

Base URL

Self-host default: http://localhost:8080. Hosted: your project URL. The dashboard talks to NEXT_PUBLIC_API_URL.

Authentication

Create a key under Settings → API keys (POST /api/keys). Send it on every authenticated route:

header
Authorization: Bearer v5_live_…

Login (POST /api/auth/login) returns a JWT for the admin operator. The dashboard uses that. Agents and scripts should use API keys. Authentication.

Shared filters

QueryValuesApplies to
days1, 7, 30stats, breakdown, ai, goals
actorhuman, human_via_ai, ai_crawler, ai_agent, bot, allsame
fieldsource, page, country, devicebreakdown only

Catalog

Something off? Open an issue · Edit on GitHub