---
title: "Get usage history for a tenant"
method: GET
path: "/v1/billing/usage/{tenant_id}"
---

# Get usage history for a tenant

`GET /v1/billing/usage/{tenant_id}`

## 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/billing/usage/{tenant_id}`
- Auth: none declared

## Path parameters

- `tenant_id` string, required

## Query parameters

- `limit` integer
- `offset` integer
- `start` string, nullable
- `end` string, nullable
- `include_adjustments` boolean: Include admin_adjustment rows. Off by default: this is per-page metering, and a top-up or comp is not usage. Purchases are at GET /v1/billing/grants/{tenant_id}.

## Headers

- `X-API-KEY` string, nullable

## Response `200`

Successful Response

- UsageHistoryResponse
  - `tenant_id` string, required
  - `items` UsageLedgerItem[], required
    - `id` integer, required
    - `tenant_id` string, required
    - `timestamp` string, date-time, required
    - `operation` string, required
    - `document_id` string, nullable
    - `pages` integer, required
    - `rate_per_page_usd` number, required
    - `total_cost_usd` number, required
    - `billing_type` string, required
    - `llm_cost_usd` number, nullable
    - `request_id` string, nullable
    - `credits_delta` integer, nullable
    - `extraction_mode` string, nullable
    - `trigger` string, nullable

## 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)
