Skip to main content

Endpoint

Authentication

Required.

Query parameters

days
number
Number of days to include. Default: 30.

Response

success
boolean
summary
object
byAgent
array
Per-agent breakdown: agentId, agentName, agentCategory, totalCredits, chatCredits, ttsCredits, messageCount.
byFeature
array
Per-feature breakdown: feature, totalCredits, count.
bySource
array
Per-source breakdown: source (playground, widget, api, etc.), totalCredits, count.
dailyUsage
array
Daily credit usage: date (YYYY-MM-DD) and credits.

Example