codai Usage & keys API
Your own usage and API keys, the same data the hub shows. `GET /v1/usage` splits requests, errors, tasks, tokens and cost by day, key, device, app, platform, model, client or tag over at most 400 UTC days (default: the last 30 days including today). Recent days are read from raw usage events, older days from the daily rollup; tags live on the key and are joined at read time, so retagging a key re-attributes its history. Cost is USD micros as a decimal string, never converted. `GET /v1/keys` lists your keys with their device attribution (never the hash or the plaintext); keys minted for third-party apps are not listed. `PATCH /v1/keys/{id}` sets your own tags on one key. Every route needs a `codai_` key and only ever sees the calling account.