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

# Get Regions

> List all regions on the platform with their details.



## OpenAPI

````yaml /api/machines/openapi.json get /v1/platform/regions
openapi: 3.1.0
info:
  title: Machines API
  description: >-
    This site hosts documentation generated from the Fly.io Machines API OpenAPI
    specification. Visit our complete [Machines API
    docs](https://fly.io/docs/machines/api/) for how to get started, more
    information about each endpoint, parameter descriptions, and examples.
  contact: {}
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://api.machines.dev
security:
  - FlyBearerAuth: []
tags:
  - name: Apps
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/apps-resource/) for details about
      using the Apps resource.
  - name: Machines
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/machines-resource/) for details
      about using the Machines resource.
  - name: TLS Certificates
    description: >
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/certificates-resource/) for details
      about using the TLS Certificates resource.
  - name: Volumes
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/volumes-resource/) for details
      about using the Volumes resource.
  - name: Postgres Clusters
    description: >-
      Create and manage Postgres clusters, including databases, users,
      extensions, backups, and app attachments.
externalDocs:
  url: https://fly.io/docs/machines/working-with-machines/
paths:
  /v1/platform/regions:
    get:
      tags:
        - Platform
      summary: Get Regions
      description: List all regions on the platform with their details.
      operationId: Platform_regions_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/main.regionResponse'
      security: []
components:
  schemas:
    main.regionResponse:
      type: object
      properties:
        Regions:
          type: array
          description: The regions available to the caller.
          items:
            $ref: '#/components/schemas/main.regionRow'
        nearest:
          type: string
          description: >-
            Code of the region of the Fly.io edge that received the request,
            usually the one

            closest to the caller.
    main.regionRow:
      type: object
      properties:
        code:
          type: string
          description: >-
            Region code, such as `iad`, used to select the region in other
            requests.
        deprecated:
          type: boolean
          description: >-
            Whether the region is deprecated. Avoid creating new resources in
            it.
        gateway_available:
          type: boolean
          description: >-
            Whether the region has a WireGuard gateway that private network
            peers can connect to.
        geo_region:
          type: string
          description: Geographic area the region belongs to.
          enum:
            - africa
            - asia_pacific
            - europe
            - north_america
            - south_america
        latitude:
          type: number
          description: Latitude of the region's location.
        longitude:
          type: number
          description: Longitude of the region's location.
        mpg_available:
          type: boolean
          description: Whether Managed Postgres clusters can be created in the region.
        name:
          type: string
          description: Human-readable name of the region, such as `Ashburn, Virginia (US)`.
        requires_paid_plan:
          type: boolean
          description: Whether only organizations on a paid plan can use the region.
  securitySchemes:
    FlyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Fly API token with access to the requested organization or resource.
        Send it as `Authorization: Bearer <Fly API token>`.

````