---
title: "List prepaid credit history"
method: GET
path: "/credits/history"
tags: ["Organization settings"]
---

# List prepaid credit history

`GET /credits/history`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/credits/history`
- Auth: HTTP bearer

The organization's prepaid credit (redeemed codes and granted credit), newest first, with how much of each is used and left.

Person only: a dashboard session. The person's role must hold billing:read. API keys, agent connection keys and agents are refused.

## Query parameters

- `cursor` string

## Response `200`

Success

- object
  - `success` true, required
  - `data` OrgSettingsListCreditHistoryResult, required
    - `items` object[], required
      - `id` string, required
      - `source` 'code' | 'staff' | 'other', required
      - `label` string, nullable, required
      - `code` string, nullable, required
      - `currency` string, required
      - `amount_micros` string, required
      - `used_micros` string, required
      - `remaining_micros` string, required
      - `granted_at` string, date-time, required
      - `expires_at` string, date-time, nullable, required
      - `ended_at` string, date-time, nullable, required
      - `status` 'active' | 'used_up' | 'expired' | 'revoked' | 'clawed_back', required
    - `next_cursor` string, nullable, required
    - `estimate_unavailable` boolean, required

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

---

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