Per-key usage rollup
Rolled-up request / token / error counts for a specific API key. Aggregated nightly from runtime_events into key_usage_daily (migration 043). A freshly minted key legitimately has no rollup rows yet - the endpoint returns zeros in that case rather than 404.
Path Parameters
Response
Usage rollup (zeros when no rows yet)
GET /v1/keys/{key_prefix}/usage - rolled-up per-key counters.
Values are aggregated nightly from runtime_events into the key_usage_daily table (migration 043). Returns zeros for any window that has no rolled-up data yet - a brand-new key legitimately has zero requests, and returning 404 would force the dashboard into a special-case render path.