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

# Get Usage History

`POST /v1/billing/usage-history`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/billing/usage-history`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/billing/usage-history/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/billing/usage-history/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
