---
title: "Get AI assistant usage for a month"
type: reference
method: GET
path: /rest-api/ai-chat/usage.do
tag: "AI Assistant Usage"
---

# Get AI assistant usage for a month

`GET https://YOUR-NETWORK-DOMAIN/rest-api/ai-chat/usage.do`

Lists, per user and key source, the AI assistant chat's model calls in one calendar month (UTC): 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). 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

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `month` | string | no | `2026-10` | Calendar month (UTC) in YYYY-MM form; the current month when omitted |

## Responses

- `200` — {success, month, rows:[{userId, username, 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

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/ai-chat/usage.do?month=2026-10' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/ai-assistant-usage/get-ai-chat-usage