> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlemma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List bank accounts

> Retrieve all bank accounts associated with a specific entity.

Returns a paginated list of bank accounts belonging to an entity. Results are
[paginated](/api-reference/pagination).

## Query parameters

<ParamField query="entity_id" type="string" required>
  The ID of the entity. You can find entity IDs using the [List
  entities](/api-reference/list-entities) endpoint.
</ParamField>

<ParamField query="limit" type="integer" default="20">
  Maximum number of accounts to return per page. Maximum is 100.
</ParamField>

<ParamField query="cursor" type="string">
  Pagination cursor for retrieving the next page of results. Returned as
  `cursor` in the response. See [pagination](/api-reference/pagination) for
  details.
</ParamField>

## Response

<ResponseField name="has_next" type="boolean">
  Whether more accounts exist beyond this page. Use the `cursor` field to
  retrieve the next page.
</ResponseField>

<ResponseField name="cursor" type="string | null">
  Cursor to retrieve the next page of results. Null if this is the last page.
  Pass this value as the `cursor` query parameter in a subsequent request. See
  [pagination](/api-reference/pagination) for details.
</ResponseField>

<ResponseField name="data" type="object[]">
  The list of account objects.

  <Expandable title="Account object">
    <ResponseField name="id" type="string">
      Unique identifier for the account, prefixed with `account_`.
    </ResponseField>

    <ResponseField name="entity_id" type="string">
      The ID of the entity that owns this account.
    </ResponseField>

    <ResponseField name="name" type="string">
      The name of the account.
    </ResponseField>

    <ResponseField name="account_number" type="string">
      The bank account number.
    </ResponseField>

    <ResponseField name="routing_number" type="string">
      The ABA routing number.
    </ResponseField>

    <ResponseField name="total_balance" type="integer">
      The total balance of the account in cents, including funds that are not
      yet available.
    </ResponseField>

    <ResponseField name="available_balance" type="integer">
      The balance available for use in cents. This excludes any held funds from
      pending transactions.
    </ResponseField>

    <ResponseField name="opened_at" type="string">
      The timestamp when the account was opened, in ISO 8601 format.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": [
      {
        "id": "account_Rv4nBt8xKw2pMh6s",
        "entity_id": "entity_k7mXp2vR9nTfBw4s",
        "name": "Operating Account",
        "account_number": "123456789",
        "routing_number": "021000021",
        "total_balance": 2450000,
        "available_balance": 2350000,
        "opened_at": "2026-01-15T09:30:00Z"
      },
      {
        "id": "account_Hn9wFj3cTd7yXk5v",
        "entity_id": "entity_k7mXp2vR9nTfBw4s",
        "name": "Collections Account",
        "account_number": "987654321",
        "routing_number": "021000021",
        "total_balance": 875430,
        "available_balance": 875430,
        "opened_at": "2026-02-20T14:00:00Z"
      }
    ],
    "has_next": false,
    "cursor": null
  }
  ```
</ResponseExample>
