# Get account ledger

> Latest 50 entries with no pagination.

See [pricing and account credit](https://revise.io/developer/docs/revise-api/pricing) for integration guidance.

## TypeScript

```ts
import { ReviseClient } from "@reviseio/api";

const revise = new ReviseClient({ apiKey: process.env.REVISE_API_KEY! });
const result = await revise.account.ledger();
```

`GET https://revise.io/api/v1/account/ledger`

Latest 50 entries with no pagination. available_delta_usd is the signed net change in account credit. Prompt and conversion entries expose the corresponding job ID; funding entries have neither. Use /v1/usage for historical charge aggregation.

## Authorization

`Authorization: Bearer <key>` with an API key from https://revise.io/console/api-keys.

## Responses

### 200 `Ledger`

Read the latest 50 credit entries

- `data` (array<object>, required)
  - `id` (integer, required)
  - `kind` (string, required)
  - `prompt_id` (string | null, required): Prompt linked to this entry, or null. Follow with GET /v1/prompt/{id}; conversion_id is null for prompt entries. Both IDs are null for funding entries.
  - `conversion_id` (string | null, required): Conversion linked to this entry, or null. Follow with GET /v1/convert/{id}; prompt_id is null for conversion entries.
  - `available_delta_usd` (string, required): Signed net change to the credit balance for this entry. Historical reservation holds and their releases net to zero.. example "0.050000000"
  - `created_at` (string<date-time>, required)
- `limit` (number, required): always 50

### default `Error`

Error

- `error` (object, required)
  - `code` (string, required)
  - `message` (string, required)
  - `details` (object)
