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

# Create new country



## OpenAPI

````yaml post /v1/countries
openapi: 3.0.0
info:
  title: Corebanq - Countries API
  description: API endpoints for country data management
  version: 1.0.0
servers: []
security: []
paths:
  /v1/countries:
    post:
      summary: Create new country
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCountryInput'
      responses:
        '201':
          description: Country created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountryResponse'
components:
  schemas:
    CreateCountryInput:
      type: object
      required:
        - name
        - iso_alpha2
        - iso_alpha3
        - iso_numeric
      properties:
        name:
          type: string
        iso_alpha2:
          type: string
          minLength: 2
          maxLength: 2
        iso_alpha3:
          type: string
          minLength: 3
          maxLength: 3
        iso_numeric:
          type: string
          minLength: 3
          maxLength: 3
        iban_length:
          type: integer
        currency_code:
          type: string
          minLength: 3
          maxLength: 3
        active:
          type: boolean
          default: true
        metadata:
          type: object
    CountryResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        iso_alpha2:
          type: string
        iso_alpha3:
          type: string
        iso_numeric:
          type: string
        iban_length:
          type: integer
        currency_code:
          type: string
        active:
          type: boolean
        metadata:
          type: object
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time

````