---
title: "List accounts for a bank"
method: GET
path: "/v1/banks/{bid}/accounts"
tags: ["Accounts"]
---

# List accounts for a bank

`GET /v1/banks/{bid}/accounts`

## Request

- Base URL: `https://api.banksync.io`
- URL: `https://api.banksync.io/v1/banks/{bid}/accounts`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Responses may be served from a cache up to 6 hours old: `X-BankSync-Cache` says `hit`, `miss` or `bypass`, and `Age` is the cached answer's age in seconds.

## Path parameters

- `bid` string, required: Bank ID

## Response `200`

List of accounts

- object
  - `success` true, required
  - `data` object[], required
    - `id` string, required
    - `bankId` string, required
    - `accountNumber` string, required
    - `accountName` string
    - `accountType` string, required
    - `balance` number, nullable, required
    - `availableBalance` number, nullable, required
    - `currency` string, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `links` object, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `409`: The bank needs reconnecting and no accounts are cached (`code` `reauth_required`, `recovery.action` `reconnect`, `reconnectUrl` where to reconnect it) — never an empty list that reads as "this bank has no accounts"

---

[API](https://skmtc.dev/banksync/apis/banksync-api.md) · [All operations](https://skmtc.dev/banksync/apis/banksync-api/llms.txt) · [OpenAPI document](https://skmtc.dev/banksync/apis/banksync-api/revisions/94465f5ee922?raw)
