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

# List countries

> Countries Onstacks can ramp into or out of, with the rails each supports.



## OpenAPI

````yaml /openapi.yaml get /v1/ramp/countries
openapi: 3.1.0
info:
  title: Onstacks Backend API
  version: 0.1.0
  summary: >-
    Public API contract for workspace wallet, transfer, provider routing, API
    key, and webhook flows.
servers:
  - url: https://api.onstacks.io
security: []
tags:
  - name: Health
  - name: Workspace
  - name: Wallets
  - name: Transfers
  - name: Corridors
  - name: Providers
  - name: Quotes
  - name: Ramp
paths:
  /v1/ramp/countries:
    get:
      tags:
        - Ramp
      summary: List countries
      description: >-
        Countries Onstacks can ramp into or out of, with the rails each
        supports.
      parameters:
        - $ref: '#/components/parameters/EnvironmentQuery'
        - in: query
          name: is_active
          description: Filter by active state.
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: Countries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RampCountriesResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - apiKeyBearer: []
components:
  parameters:
    EnvironmentQuery:
      in: query
      name: environment
      description: >-
        Environment scope for environment-partitioned resources. Defaults to
        `sandbox` when omitted.
      required: false
      schema:
        $ref: '#/components/schemas/EnvironmentScope'
  schemas:
    RampCountriesResponse:
      type: object
      required:
        - data
        - error
        - request_id
      properties:
        data:
          type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/RampCountry'
        error:
          type: 'null'
        request_id:
          type: string
    EnvironmentScope:
      type: string
      enum:
        - sandbox
        - live
      default: sandbox
    RampCountry:
      type: object
      properties:
        code:
          type: string
          example: NG
        name:
          type: string
          example: Nigeria
        currency:
          type: string
          example: NGN
        supported_rails:
          type: array
          items:
            $ref: '#/components/schemas/RampRail'
        is_active:
          type: boolean
        logo_url:
          type: string
    ErrorEnvelope:
      type: object
      required:
        - data
        - error
        - request_id
      properties:
        data:
          type: 'null'
        error:
          $ref: '#/components/schemas/ApiError'
        request_id:
          type: string
    RampRail:
      type: string
      enum:
        - bank
        - mobile_money
        - wallet
        - ach
        - wire
        - sepa
        - faster_payments
        - interac
    ApiError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
  responses:
    Unauthorized:
      description: Caller is not authenticated
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    apiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Workspace API key. Send it as `Authorization: Bearer <api_key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.