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

# Fetch Banks

> Fetch the list of supported Nigerian banks and their bank codes with the Dojah API — use the codes for NUBAN resolution and statement analysis.

<div className="dj-endpoint">
  <span className={`dj-method dj-method-get`}>GET</span>
  <code>/api/v1/general/banks</code>
</div>

Retrieve the list of supported Nigerian banks with their bank codes. Use these codes with Resolve NUBAN and Account Statement.

## Headers

| Header          | Required | Description                                         |
| --------------- | -------- | --------------------------------------------------- |
| `Authorization` | Yes      | Your app's secret key, sent as-is — *not* `Bearer`. |
| `AppId`         | Yes      | The App ID from your dashboard.                     |

## Query parameters

This endpoint takes no query parameters. Send the request with your headers only.

## Response

Returns an `entity` array. Each item is a bank object with a `name` and its `code`.

| Field  | Type   | Description                                           |
| ------ | ------ | ----------------------------------------------------- |
| `name` | string | The bank’s display name, e.g. `Access Bank`.          |
| `code` | string | The bank code to pass to other endpoints, e.g. `044`. |

## Errors

| Code  | Meaning                                                         |
| ----- | --------------------------------------------------------------- |
| `400` | Invalid request.                                                |
| `401` | Unauthorized — check your key and `AppId` (no `Bearer` prefix). |
| `429` | Too many requests — back off and retry.                         |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    "https://api.dojah.io/api/v1/general/banks" \
    -H "Authorization: {{secret_key}}" \
    -H "AppId: {{app_id}}"
  ```

  ```js Node.js theme={null}
  const res = await fetch("https://api.dojah.io/api/v1/general/banks", {
    headers: {
      Authorization: process.env.DOJAH_SECRET_KEY,
      AppId: process.env.DOJAH_APP_ID,
    },
  });
  const data = await res.json();
  ```

  ```python Python theme={null}
  import os, requests

  res = requests.get(
      "https://api.dojah.io/api/v1/general/banks",
      headers={
          "Authorization": os.environ["DOJAH_SECRET_KEY"],
          "AppId": os.environ["DOJAH_APP_ID"],
      },
  )
  data = res.json()
  ```
</RequestExample>

<ResponseExample>
  ```json GET /api/v1/general/banks theme={null}
  {
    "entity": [
      { "name": "Access Bank", "code": "044" },
      { "name": "Zenith Bank", "code": "057" },
      { "name": "ALAT by WEMA", "code": "035A" },
      { "name": "Globus Bank", "code": "00103" },
      { "name": "Parallex MFB", "code": "015" }
      // …full list of supported banks
    ]
  }
  ```
</ResponseExample>
