---
title: "Get credit consumption history"
method: GET
path: "/public/v1/billing/credits/history"
tags: ["Billing"]
---

# Get credit consumption history

`GET /public/v1/billing/credits/history`

Returns daily credit consumption broken down by AI model. Optionally filter with start_date and end_date (ISO dates).

## Query parameters

- `start_date` string, nullable
- `end_date` string, nullable

## Response `200`

Credit history grouped by date and model

- PublicCreditHistory
  - `results` PublicCreditHistoryItem[], required
    - `date` string, required
    - `aiModelId` number, nullable
    - `model` string, nullable
    - `modelName` string, nullable
    - `analyticsColor` string, nullable
    - `totalCredits` number, required
    - `messageCount` number, required

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/getfrontline/apis/public-api.md) · [All operations](https://skmtc.net/getfrontline/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getfrontline/public-api/versions/9d33b6aad674/schema)
