# List ledger entries

Lists ledger entries with their account and transaction, newest first, 50 per page, with the total match count. Requires ledger:read.

`GET /v1/ledger/entries`

Lists ledger entries with their account and transaction, newest first, 50 per page, with the total match count. Requires ledger:read.

Requires permission `ledger:read`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `account_id` | query | no | Only entries on this ledger account id. |
| `intent_id` | query | no | Only entries for this payment intent (pi_...). |
| `cursor` | query | no | next_cursor from the previous page. |
| `namespace` | query | no | Ledger namespace: main (default) or simulated. |
| `q` | query | no | Search (substring): entry or transaction id, account code or name, transaction description or reference, intent id. |

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.

Example 200 response:

```json
{
  "data": [
    {
      "id": "len_01m7dp8jz3bj4mjekmr5tdnjk5",
      "txn_id": "ltx_01m7dp8jyhc4fy9ejqtd0kwzst",
      "account_id": "lac_01m7dn215arhj09aed84ph2rve",
      "account_code": "org:org_01m7dmxx43vkd5ezrghf9m2ytv:funds:solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
      "account_name": "org funds solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
      "direction": "credit",
      "amount_base_units": "50000",
      "intent_id": "pi_01m7dp8jrds968s54ybzme61kx",
      "kind": "payment",
      "description": "Payment pi_01m7dp8jrds968s54ybzme61kx",
      "reference": "63TpPPK8e43RFePtnmvzUByTpjxCNTKdkaZfqvjn3ABHw8CKL5YnWrpntba7sWD8YYhuUh6dNHWfbkNrUBYvQ9Zm",
      "reverses_txn_id": null,
      "simulated": false,
      "created_at": "2026-11-14T18:49:05.768899Z"
    },
    {
      "id": "len_01m7dp8jz07t4f3zb0mtxdacvg",
      "txn_id": "ltx_01m7dp8jyhc4fy9ejqtd0kwzst",
      "account_id": "lac_01m7dn21593gtce381nwdgrm4y",
      "account_code": "org:org_01m7dmxx43vkd5ezrghf9m2ytv:spend",
      "account_name": "org spend",
      "direction": "debit",
      "amount_base_units": "50000",
      "intent_id": "pi_01m7dp8jrds968s54ybzme61kx",
      "kind": "payment",
      "description": "Payment pi_01m7dp8jrds968s54ybzme61kx",
      "reference": "63TpPPK8e43RFePtnmvzUByTpjxCNTKdkaZfqvjn3ABHw8CKL5YnWrpntba7sWD8YYhuUh6dNHWfbkNrUBYvQ9Zm",
      "reverses_txn_id": null,
      "simulated": false,
      "created_at": "2026-11-14T18:49:05.768895Z"
    }
  ],
  "next_cursor": "len_01m7dn5qjkpqyq2fye33m1x6gb"
}
```
