Analytics API

Relay statistics, chain health probes, cost tracking, and portfolio views.

GET/api/analytics/relay-stats?agent_id=&timeframe=day|week|all

Aggregated relay counts, per-chain breakdown, daily trend, and notional POKT cost estimate.

GET/api/analytics/chain-health

Latency and availability probes for headline chains (ethereum, polygon, arbitrum, optimism, bsc, base, solana).

GET/api/analytics/cost-tracker?agent_id=

Per-chain spend tracking against agent caps when agent_id is provided.

GET/api/analytics/portfolio?agent_id=X-Agent-Access-Token

Multi-chain portfolio with CoinGecko valuations when scoped to an agent.

When agent_id is provided on scoped endpoints, the token header is required and validated.