# List connected Cloudflare zones

Source: https://openpanel.sh/docs/api/domains/list-connected-cloudflare-zones

The zones in which OpenPanel writes your own domains' DNS records. Tokens are never returned.

`GET https://openpanel.sh/api/v1/dns-zones`

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `limit` | query | no | How many items to return, 1 to 100. Default 50. |
| `cursor` | query | no | The nextCursor of the previous page. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | List connected Cloudflare zones | `application/json`, `DnsZonePage` |
| 401 | No valid credential was sent. | `application/problem+json`, `Problem` |
| 403 | The credential may not do this. | `application/problem+json`, `Problem` |
| 422 | The input was refused; detail says why. | `application/problem+json`, `Problem` |
| 429 | Too many requests; wait for Retry-After seconds. | `application/problem+json`, `Problem` |

## Schemas

### DnsZone

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "provider": {
      "type": "string",
      "enum": [
        "cloudflare"
      ]
    },
    "zoneId": {
      "type": "string",
      "description": "Cloudflare's id of the zone."
    },
    "name": {
      "type": "string",
      "description": "The zone, such as example.com."
    },
    "sslMode": {
      "description": "The zone's SSL/TLS mode when last checked (off, flexible, full, strict), or null when the token may not read it. Own domains behind Cloudflare need full.",
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    },
    "createdByName": {
      "type": [
        "string",
        "null"
      ]
    },
    "domains": {
      "type": "integer",
      "description": "Own domains whose records OpenPanel wrote in this zone."
    }
  },
  "required": [
    "id",
    "provider",
    "zoneId",
    "name",
    "sslMode",
    "createdAt",
    "checkedAt",
    "createdByName",
    "domains"
  ]
}
```

### DnsZonePage

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

### 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"
  ]
}
```