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

# List countries

> List the reference catalog of countries Kira recognizes, with ISO **alpha-3** codes, postal-code format patterns, and subdivisions (states/provinces). Use it to populate country/subdivision pickers and to validate `address_country` / `nationality` values before submitting users and recipients.

The response is a `{ count, data }` envelope: `count` is the number of entries and `data[]` holds the countries.

**Path matters:** it is exactly `/v1/countries`. `/countries` and `/api/countries` return `403`.

{/* version-stamp:start — generated by scripts/stamp-versions.ts, do not edit */}

<Info>Stable since **2025-01-01** — unchanged in **2026-06-01**.</Info>

{/* version-stamp:end */}


## OpenAPI

````yaml /openapi/kira-api.2026-06-01.json get /v1/countries
openapi: 3.1.0
info:
  title: Kira API
  version: '2026-06-01'
  description: >-
    REST API for users, KYC/KYB verification, virtual accounts, payouts,
    recipients, and webhooks. Every request requires an `x-api-key` header and a
    bearer access token (see Authentication). Pin your account to version
    `2026-04-14` before integrating.
  contact:
    name: Kira API Support
    email: support@kirafin.ai
servers:
  - url: https://api.balampay.com
    description: Production
  - url: https://api.balampay.com/sandbox
    description: Sandbox
security:
  - bearerAuth: []
    apiKeyAuth: []
tags:
  - name: Authentication
  - name: Versioning
  - name: Users
  - name: Virtual Accounts
  - name: Quotations
  - name: Payouts
  - name: Recipients
  - name: Reference
  - name: RFIs
paths:
  /v1/countries:
    get:
      tags:
        - Reference
      summary: List countries
      description: >-
        List the reference catalog of countries Kira recognizes, with ISO
        **alpha-3** codes, postal-code format patterns, and subdivisions
        (states/provinces). Use it to populate country/subdivision pickers and
        to validate `address_country` / `nationality` values before submitting
        users and recipients.


        The response is a `{ count, data }` envelope: `count` is the number of
        entries and `data[]` holds the countries.


        **Path matters:** it is exactly `/v1/countries`. `/countries` and
        `/api/countries` return `403`.
      operationId: get_v1-countries
      parameters:
        - in: header
          name: X-Api-Version
          required: false
          description: >-
            Optional. The date-versioned API version to apply for this request
            (e.g. `2026-04-14`). When sent it always wins, even over your pinned
            account default. When omitted, the API uses your account's pinned
            version if set, otherwise a baseline default.
          schema:
            type: string
            example: '2026-06-01'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountriesResponse'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
          apiKeyAuth: []
components:
  schemas:
    CountriesResponse:
      type: object
      properties:
        count:
          type: integer
          description: Number of countries in `data`.
          example: 250
        data:
          type: array
          items:
            $ref: '#/components/schemas/Country'
          description: >-
            Array of supported countries. Via `GET /v1/countries`: each item is
            `{name, alpha3 (ISO 3166-1 alpha-3), postal_code_format,
            subdivisions}`, where `subdivisions` is an array of `{name, code}`
            (states/provinces) — e.g. Afghanistan returns `alpha3: "AFG"`,
            `postal_code_format: "\\A\\d{4}\\Z"`, and 34 subdivisions.
      required:
        - count
        - data
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
        statusCode:
          type: number
        error:
          type: string
        timestamp:
          type: string
        path:
          type: string
        details: {}
      required:
        - message
    Country:
      type: object
      properties:
        name:
          type: string
          description: Country name.
          example: Afghanistan
        alpha3:
          type: string
          description: ISO 3166-1 alpha-3 country code.
          example: AFG
        postal_code_format:
          type:
            - string
            - 'null'
          description: >-
            Regex describing the country's postal-code format, or `null` if
            none.
          example: \A\d{4}\Z
        subdivisions:
          type: array
          description: States/provinces for the country.
          items:
            $ref: '#/components/schemas/CountrySubdivision'
      required:
        - name
        - alpha3
    CountrySubdivision:
      type: object
      properties:
        name:
          type: string
          example: Badakhshan
        code:
          type: string
          example: BDS
      required:
        - name
        - code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token from `POST /auth` (the `data.access_token` value).
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key issued by Kira. Required on every request, including `/auth`.

````