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

# Get Banks

> Get all banks

Retrieve a list of all supported banks with their names and codes.

<Info>
  **Important:** Bank codes are required for fiat recipient creation and account
  lookups. Make sure to use the correct bank code from this list.
</Info>


## OpenAPI

````yaml GET /v1/banks
openapi: 3.1.0
info:
  title: Hashrails API
  description: >-
    Comprehensive API documentation for Hashrails – easily create, manage, and
    query virtual accounts, recipients, and bank integrations. Secure, scalable,
    and developer-friendly.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.railsfromthecrypt.com
  - url: https://api.hashrails.com
security: []
paths:
  /v1/banks:
    get:
      tags:
        - Public Banks
      summary: Get all banks
      description: Get all banks
      operationId: PublicBankController_
      parameters:
        - name: x-api-key
          in: header
          description: API key for authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Banks retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Banks retrieved successfully
                  data:
                    type: object
                    properties:
                      results:
                        type: array
                        items:
                          $ref: '#/components/schemas/PublicBankResponseDto'
components:
  schemas:
    PublicBankResponseDto:
      type: object
      properties:
        name:
          type: string
          example: Wema Bank
        code:
          type: string
          example: '044'
      required:
        - name
        - code

````