# List OpenPanel's regions

Source: https://openpanel.sh/docs/api/servers/list-openpanel-s-regions

The regions OpenPanel's own edge serves from. Empty while everything runs from the main server.

`GET https://openpanel.sh/api/v1/regions`

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | List OpenPanel's regions | `application/json`, `RegionPage` |
| 401 | No valid credential was sent. | `application/problem+json`, `Problem` |
| 403 | The credential may not do this. | `application/problem+json`, `Problem` |
| 429 | Too many requests; wait for Retry-After seconds. | `application/problem+json`, `Problem` |

## Schemas

### Problem

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "A link to the error's explanation in the docs."
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "code": {
      "type": "string",
      "description": "Stable machine-readable code: not_found, forbidden, invalid, conflict, rate_limited, not_implemented, …"
    },
    "detail": {
      "type": "string",
      "description": "What went wrong, in a sentence written for a person."
    }
  },
  "required": [
    "type",
    "title",
    "status",
    "code",
    "detail"
  ]
}
```

### Region

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "area": {
      "type": "string",
      "enum": [
        "europe",
        "america",
        "asia"
      ]
    },
    "name": {
      "type": "string"
    },
    "edgeHost": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "planned",
        "live",
        "maintenance",
        "retired"
      ]
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "area",
    "name",
    "edgeHost",
    "status",
    "enabled"
  ]
}
```

### RegionPage

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Region"
      }
    },
    "nextCursor": {
      "description": "Pass as cursor for the next page; null on the last.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "nextCursor"
  ]
}
```