---
title: "Get Usage History"
method: POST
path: "/billing/usage-history"
tags: ["billing"]
---

# Get Usage History

`POST /billing/usage-history`

Get usage history for the authenticated user.

Args:
    request: Optional start_date and end_date filters
    auth: Authenticated user context

Returns:
    Usage summary with detailed request history

## Request body

- UsageHistoryRequest — Request model for usage history.
  - `start_date` string, nullable — Start date in ISO format (YYYY-MM-DD)
  - `end_date` string, nullable — End date in ISO format (YYYY-MM-DD)

## Response `200`

Successful Response

- UsageHistoryResponse — Response model for usage history.
  - `total_tokens` integer, required
  - `total_credits` number, required
  - `total_cost` number, required
  - `request_count` integer, required
  - `requests` object[], required
  - `requests_limit` integer — Maximum detailed request rows included in this response.
  - `requests_truncated` boolean — Whether more matching request rows exist than are returned.
  - `resource_breakdown_30d` object[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
