AI usage broken down by credential
GET/api/ai/usage/by-credential
Returns one aggregate per credential for the requested billing period (defaults to the current period). Rows with no credential_id collect under an "unassigned" entry — those are pre-E-2 history and the test/ local fake provider. Admin only.
Request
Responses
- 200
- 401
- 403
The per-credential breakdown.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.