# List balance history

`GET` `https://goblins-call-api.onrender.com/v1/users/:id/passbook`

Returns the workspace’s ledger, newest first: every call that was billed and every credit added.

Needs a [workspace API key](https://www.cracklehq.com/docs/authentication).

## Path parameters

- `id` (string, required): Your workspace ID.

## Query parameters

- `limit` (integer, optional, up to 500; default 50): How many entries to return.

## Response

- `passbook[].type` (enum, credit · debit): Whether the entry added to the balance or took from it.
- `passbook[].reason` (string): Why: `call_usage` for a billed call, `signup_credit`, `plan_credit` or `topup` for a payment, or an adjustment.

## Errors

- `404`: That is not your workspace.

Every request can also answer `401`, `429` and `500`: see [Errors](https://www.cracklehq.com/docs/errors).

Request:

cURL:

```bash
curl "https://goblins-call-api.onrender.com/v1/users/usr_8c1d2e3f4a5b/passbook?limit=20" \
  -H "Authorization: Bearer $CRACKLE_API_KEY"
```

Node.js:

```js
const response = await fetch('https://goblins-call-api.onrender.com/v1/users/usr_8c1d2e3f4a5b/passbook?limit=20', {
  headers: {
    Authorization: `Bearer ${process.env.CRACKLE_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

Python:

```python
import os
import requests

response = requests.get(
    "https://goblins-call-api.onrender.com/v1/users/usr_8c1d2e3f4a5b/passbook?limit=20",
    headers={"Authorization": f"Bearer {os.environ['CRACKLE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
data = response.json()
```

Response · 200 OK:

```json
{
  "passbook": [
    {
      "id": "9031",
      "userId": "usr_8c1d2e3f4a5b",
      "type": "debit",
      "amount": 0.2147,
      "balanceBefore": 42.4,
      "balanceAfter": 42.1853,
      "reason": "call_usage",
      "description": "Call usage: 184s @ $0.07/min",
      "callId": "8f1c2c1e-7b1a-4e0a-9c55-2f6f0d3b1a90",
      "agentId": "ua_3f9a1c2b",
      "durationSeconds": 184,
      "ratePerMinute": 0.07,
      "createdAt": "2026-10-11T05:59:19.000Z"
    }
  ],
  "user": { "id": "usr_8c1d2e3f4a5b", "balance": 42.1853, … }
}
```

Source: https://www.cracklehq.com/docs/reference/workspace/usage
