Credits
Get the caller's real per-tool credit usage aggregation
A GROUP BY toolInvocation.name aggregation over CreditLedger CAPTURE/USAGE rows — backs the /usage dashboard’s stat cards and Overview tab. Optional ?period= (7d/30d/90d/all, default all) scopes it to a rolling window off the current time.
GET
Get the caller's real per-tool credit usage aggregation
Authorizations
Clerk session token, Authorization: Bearer <token> — the first-party browser app's own auth. Used only by this internal /api/v1/* surface, never by /api/public/v1/*.
Query Parameters
Available options:
7d, 30d, 90d, all