Apps
AI tokens an App spent (v2, tenant actor)
Model tokens charged to the App from the daily ledger: agent replies, the smart gate, heartbeat turns, flow answers, the agent reply API, and the embeddings for Web Index pages, uploaded documents and knowledge search. from/to are UTC days, to exclusive; the default is the current month to date. monthToDate is always included.
get/v2/apps/{appId}/ai-usage
Request
- Base URL: https://api.chat.ethora.com
- URL: https://api.chat.ethora.com/v2/apps/{appId}/ai-usage
- Auth: HTTP bearer
Path parameters
appIdstring required
Query parameters
fromstring date
tostring date
Response
{ ok: true, result: { appId, from, to, monthToDate,
total: { calls, inputTokens, outputTokens, totalTokens, estimatedTokens, chatTokens, embeddingTokens },
byKind: [{ kind, ... }], byAgent: [{ agentId, ... }], byModel: [{ model, ... }], byDay: [{ date, ... }] } }
Changes
No recorded changes to this operation across all 1 revision of this API.