API reference
GETRequires Bearer token
Show company AI usage
/api/ai/usage/company
Company-admin. Includes quota (tokens_allocated, tokens_used, module_enabled) and a per-member breakdown.
Path parameters
This endpoint has no path parameters.
Query parameters
| Field | Type | Description |
|---|---|---|
from | string | Start date YYYY-MM-DD.e.g. "2026-01-01" |
to | string | End date YYYY-MM-DD. |
granularity | string | day or month.e.g. "month" |
Request body
This endpoint does not accept a request body.
Responses
| Status | Meaning |
|---|---|
| 200 | Company usage |
| 401 | Missing or invalid Bearer token. |