---
updatedAt: 2025-09-18T22:02:09.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# List Zones

This API call returns a list of all the zones in the network. For the API Explorer, use the assigned API Key.

> 👍 Information
>
> Note that network zones (zones applicable to any site) will not have a `SiteId` in the response.

> 🚧 Caution
>
> The List Zones endpoint will not return zones associated with deleted sites.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/zone": {
      "get": {
        "summary": "List Zones",
        "description": "This API call returns a list of all the zones in the network. For the API Explorer, use the assigned API Key.",
        "operationId": "list-zones",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{  \n    \"page\":1,\n    \"items\":[  \n        {  \n            \"Id\":98765,\n            \"Name\":\"Zone Name\",\n            \"SiteId\":12345,          \n            \"IsDeleted\":false\n        },\n        {  \n            \"Id\":98766,\n            \"Name\":\"A Network Zone for All Sites\",\n            \"IsDeleted\":false\n        },\n        .....\n\t\t]\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X GET -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \"https://api.kevel.co/v1/zone\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function listZones() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let zones = await client.run(\"zone\", \"list\");\n  console.log(zones);\n\n  let names = zones.items.map(a => a.name)\n  console.log(names);\n}\n\nlistZones();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef list_zones()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    pp client.zones.list()\nend\nlist_zones()\n"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```