Get AI assistant usage for a month
Lists, per user, feature and key source, the model calls of the AI features in one calendar month (UTC) - feature is chat (the AI assistant), document (reading a spec into a preset), locations (Fix with AI on Stale locations), traffic_quality (a Traffic Quality report's AI notes) or targeting (AI ma
https://YOUR-NETWORK-DOMAIN/rest-api/ai-chat/usage.do Lists, per user, feature and key source, the model calls of the AI features in one calendar month (UTC) - feature is chat (the AI assistant), document (reading a spec into a preset), locations (Fix with AI on Stale locations), traffic_quality (a Traffic Quality report's AI notes) or targeting (AI matching of a pasted targeting list); userId and username are null for work no user started: calls, input, output, cache-read and cache-write tokens, the raw Claude API cost at list prices (rawCostUsd) and the cost the network is billed (billedCostUsd = raw x multiplier on Epom's key, 0 on the user's or the network's own key), what the AI assistant promo waived (promoWaivedUsd: the would-be billed amount of calls billed 0 during the promo), with the effective monthly cap (limitUsd: the user's own cap, else the network default, else on Epom's key the platform default; null = no cap - every feature's calls count against it). keySource is user, network or epom. Users without calls that month are left out. promoUntil is the last day (UTC) of the network's promo, null when none runs; promoAllowanceUsd is the would-be billed USD it waives for the whole network (null = no cap). The figures belong with Epom's invoice to the network, so this requires the Ad Server Fees admin permission (AD_SERVER_FEES or AD_SERVER_FEES_MANAGEMENT) - the same as the AI assistant usage section of the Ad Server Fees page. Read-only.
Query Params
month string
Calendar month (UTC) in YYYY-MM form; the current month when omitted
2026-10 Responses
200
{success, month, rows:[{userId, username, feature, keySource, calls, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens, rawCostUsd, billedCostUsd, promoWaivedUsd, limitUsd}], totalRawUsd, totalBilledUsd, totalPromoWaivedUsd, multiplier, promoUntil, promoAllowanceUsd}
400
month is not in YYYY-MM form
401
Authentication error
403
Neither AD_SERVER_FEES nor AD_SERVER_FEES_MANAGEMENT