# Get Bank List

## Get Bank List

<mark style="color:blue;">`GET`</mark> `https://api.cngn.co/v1/api/banks`

Returns an array of supported Nigerian banks with their codes and identifiers.

{% tabs %}
{% tab title="200 Banks fetched successfully" %}

```json
{
  "status": 200,
  "message": "Banks fetched successfully",
  "data": [
    {
      "name": "Access Bank",
      "slug": "access-bank",
      "code": "044",
      "country": "NG",
      "nibss_bank_code": "000014"
    },
    {
      "name": "Guaranty Trust Bank",
      "slug": "guaranty-trust-bank",
      "code": "058",
      "country": "NG",
      "nibss_bank_code": "000013"
    }
  ]
}
```

{% endtab %}

{% tab title="400 Invalid API key" %}

```json
{
  "status": 400,
  "message": "Invalid api key"
}
```

{% endtab %}
{% endtabs %}

#### Response Fields (Decrypted)

| Field             | Type   | Description                                    |
| ----------------- | ------ | ---------------------------------------------- |
| `name`            | string | Full bank name                                 |
| `slug`            | string | URL-friendly bank identifier                   |
| `code`            | string | CBN bank code (use this for `bankCode` fields) |
| `country`         | string | Country code (ISO 3166-1 alpha-2)              |
| `nibss_bank_code` | string | NIBSS regulatory bank code                     |

#### Example Request

```bash
curl -X GET https://api.cngn.co/v1/api/banks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cngn.co/integrations/endpoints/get-bank-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
