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

# List Bank Accounts

> Retrieve a paginated list of your saved bank accounts.

**GET** `/api/external/bank_accounts/?limit={limit}&cursor={cursor}&{filters}`

Lists the bank accounts available to the API user's organization. Use cursor pagination to walk through large sets, and apply filters to narrow results.

<Warning>
  Bank-account data is sensitive. Avoid logging full account and routing numbers, and preserve the organization or sub-org scope returned by the API.
</Warning>

## Query parameters

<ParamField query="limit" type="number">
  Requested page size. SDK default: 20.
</ParamField>

<ParamField query="cursor" type="string | null">
  Cursor for the next page. First page: null or empty.
</ParamField>

<ParamField query="Filters" type="Record<string, string>">
  Bank-account filters accepted by the endpoint.
</ParamField>

## Response

```typescript theme={null}
interface BankAccountListResponse {
  results: BankAccount[];
  nextCursor?: string | null;
  hasNext?: boolean;
}
```

## JavaScript SDK

```typescript theme={null}
getBankAccounts(
  params?: Record<string, string>,
  limit?: number,
  cursor?: string | null,
): Promise<BankAccountListResponse>
```

<RequestExample dropdown>
  ```json Request example theme={null}
  {
    "query": {
      "limit": 20,
      "cursor": null
    }
  }
  ```

  ```bash cURL theme={null}
  # Sample only. Generate a new signed token for each request
  # (see Authentication). Tokens expire after 120 seconds.
  curl --request GET \
    --url "https://api.primevault.com/api/external/bank_accounts/?limit=20" \
    --header "Authorization: Bearer <signed JWT>" \
    --header "Api-Key: <API key>" \
    --header "Accept: application/json"
  ```

  ```typescript JavaScript SDK theme={null}
  getBankAccounts(
    params?: Record<string, string>,
    limit?: number,
    cursor?: string | null,
  ): Promise<BankAccountListResponse>
  ```
</RequestExample>

<ResponseExample>
  ```json JSON example theme={null}
  {
    "results": [
      {
        "id": "bank_account_123",
        "orgId": "org_456",
        "subOrgId": "sub_org_123",
        "orgEntityId": "org_entity_123",
        "createdById": "api_user_123",
        "createdAt": "2026-08-04T10:30:00Z",
        "updatedAt": "2026-08-04T10:30:00Z",
        "isDeleted": false,
        "status": "PENDING",
        "accountNumber": "111222333",
        "accountName": "Acme Corp",
        "routingNumber": "021000021",
        "clientBankAccountId": "erp-bank-001",
        "paymentMethod": "US_ACH",
        "bankName": "Chase",
        "streetLine": "270 Park Avenue",
        "city": "New York",
        "state": "NY",
        "postalCode": "10017",
        "country": "US"
      }
    ],
    "nextCursor": "eyJpZCI6ImJhbmtfYWNjb3VudF8xMjMifQ==",
    "hasNext": true
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.