---
title: "The current user's credit spend history (the ledger), most recent first."
method: GET
path: "/api/v1/billing/credit-history"
tags: ["Billing"]
---

# The current user's credit spend history (the ledger), most recent first.

`GET /api/v1/billing/credit-history`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/billing/credit-history`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

<br/>Powers the "what did I spend credits on" view. Internal provider USD cost is<br/>not exposed.

## Response `200`

OK

- CreditHistoryResponse
  - `history` CreditHistoryItemResponse[], required
    - `balance_after` number, nullable
    - `created_at` string, nullable
    - `credits` number, required
    - `operation_kind` string, required
    - `operation_ref` string, nullable
    - `status` string, required

## Other responses

- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
