---
title: "Wallet balance + most recent billing rows"
method: GET
path: "/api/v1/billing/wallet"
tags: ["Billing"]
---

# Wallet balance + most recent billing rows

`GET /api/v1/billing/wallet`

Return the wallet's current balance and most recent billing rows.

All resource types are included (compute, training, inference, disks,
sandboxes, images) — same source-of-truth `Billing` table the
dashboard's Billing History tab reads. Sorted by `lastBilledAt` desc.

## Query parameters

- `limit` integer — Number of recent billing rows to include (max 100).
- `offset` integer — Skip this many rows before returning. Lets callers page.
- `teamId` string, nullable — If provided, return the team's wallet (requires membership).

## Response `200`

Successful Response

- WalletResponse — Snapshot of a wallet's balance + most recent billing rows. Drives `prime wallet`. One call returns everything an agent needs to audit the billing flow against a known training run.
  - `wallet_id` string, required
  - `team_id` string, nullable
  - `balance_usd` number, required — Current balance in USD
  - `currency` string, required
  - `total_billings` integer, required — Total billing rows on the wallet (across all pages)
  - `recent_billings` BillingEntry[], required
    - `id` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `last_billed_at` string, date-time, nullable
    - `amount_usd` number, required
    - `currency` string, required
    - `resource_type` string, required
    - `resource_id` string, nullable

## Other responses

- `401` — Authorization failed
- `422` — Invalid request data

---

[API](https://skmtc.net/primeintellect/apis/pi-api.md) · [All operations](https://skmtc.net/primeintellect/apis/pi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/primeintellect/pi-api/revisions/3d3868828a78/schema)
