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

# Get Banks

> List supported Nigerian banks and their codes

Returns the list of banks supported for redemptions and account verification, with their CBN bank codes.

<Tip>
  The bank list changes rarely; cache it for hours rather than fetching on every request.
</Tip>

### Response (decrypted `data`)

<ResponseField name="data" type="object[]">
  <Expandable title="Bank object">
    <ResponseField name="name" type="string">Bank name.</ResponseField>
    <ResponseField name="code" type="string">CBN bank code. Use it as `bankCode` in other endpoints.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.cngn.co/v1/api/banks" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```typescript TypeScript theme={null}
  const res = await fetch("https://api.cngn.co/v1/api/banks", {
    headers: { Authorization: `Bearer ${API_KEY}` },
  });
  ```

  ```python Python theme={null}
  res = requests.get(
      "https://api.cngn.co/v1/api/banks",
      headers={"Authorization": f"Bearer {API_KEY}"},
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success (data shown decrypted) theme={null}
  {
    "status": 200,
    "message": "Banks fetched successfully",
    "data": [
      { "name": "Access Bank", "code": "044" },
      { "name": "Guaranty Trust Bank", "code": "058" },
      { "name": "United Bank for Africa", "code": "033" },
      { "name": "Zenith Bank", "code": "057" }
    ]
  }
  ```
</ResponseExample>
