---
title: "Get Credit Usage"
method: GET
path: "/v1/analytics/credit-usage"
tags: ["analytics"]
---

# Get Credit Usage

`GET /v1/analytics/credit-usage`

## Request

- Base URL: `https://api.theagentc.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.theagentc.io/v1/analytics/credit-usage`
- Auth: HTTP bearer

Get credit usage breakdown over time.

Returns:
- total_spent: Total credits spent in period
- total_added: Total credits added in period (resets, purchases)
- by_reason: Breakdown by transaction reason
- time_series: Daily credit usage over the period
- average_daily_spend: Average credits consumed per day

## Query parameters

- `days` integer: Number of days to analyze

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/theagentc/apis/the-agent-c-api.md) · [All operations](https://skmtc.dev/theagentc/apis/the-agent-c-api/llms.txt) · [OpenAPI document](https://skmtc.dev/theagentc/apis/the-agent-c-api/revisions/1c9868b44584?raw)
