Retrieves API key analytics data grouped by API key for the authenticated user's organization.
Returns paginated API key-level costs with detailed usage metrics. One row per API key,
where a key is identified by provider and key id together — the same key id under two
providers is two keys and returns two rows.
sort: totalCost (default, descending), provider, apiKeyId, apiKeyName,
workspaceId, workspaceName, partialKeyHint, status, percentage, requestCount,
totalTokens, uncachedInputTokens, cachedInputTokens, cacheWriteTokens,
outputTokens, imageCount, costPer1M, creditsApplied. These are the aggregate
names, not the response field names, and an unknown key fails the request with 400.
minCost / maxCost: applied to a key's combined cost across all of its usage
types, which is the figure each row reports.
All costs are in USD. Token counts include all token types (input, output, cache).
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||