---
title: "Get aggregated usage stats (admin only). group_by: operation, billing_type, extraction_mode, tenant_id, category (consumption taxonomy: extraction, AI prefill, training, OCR), trigger (deprecated alias for category), day, week, month, day_category (daily × category for stacked charts). Consumption only unless include_adjustments=true."
method: GET
path: "/v1/admin/usage-stats"
---

# Get aggregated usage stats (admin only). group_by: operation, billing_type, extraction_mode, tenant_id, category (consumption taxonomy: extraction, AI prefill, training, OCR), trigger (deprecated alias for category), day, week, month, day_category (daily × category for stacked charts). Consumption only unless include_adjustments=true.

`GET /v1/admin/usage-stats`

## Request

- Base URL: `https://api.clichefactory.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.clichefactory.com/v1/admin/usage-stats`
- Auth: none declared

## Query parameters

- `from_date` string, nullable
- `to_date` string, nullable
- `group_by` string
- `include_adjustments` boolean: Include admin_adjustment rows (audit view). Off by default: credit sales and comps are not consumption, and their imputed USD value would swamp metered usage and read as 100% margin.

## Headers

- `X-API-KEY` string, nullable

## Response `200`

Successful Response

- AdminUsageStatsResponse
  - `period` object, required
  - `aggregates` AdminUsageStatsAggregate[], required
    - `group` string, required
    - `secondary_group` string, nullable
    - `total_credits` integer
    - `total_usd` number
    - `total_llm_cost_usd` number
    - `total_pages` integer
    - `job_count` integer
    - `margin_usd` number
    - `margin_pct` number
  - `totals` AdminUsageStatsTotals, required
    - `total_credits` integer
    - `total_usd` number
    - `total_llm_cost_usd` number
    - `job_count` integer
    - `margin_usd` number
    - `margin_pct` number

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/clichefactory/apis/aio-server.md) · [All operations](https://skmtc.dev/clichefactory/apis/aio-server/llms.txt) · [OpenAPI document](https://skmtc.dev/clichefactory/apis/aio-server/revisions/9bd59f9bbb31?raw)
