Cloudflare Zone API

The Zone API from Cloudflare — 7 operation(s) for zone.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
IT Infrastructure Management BC-600.50

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

0 of 10 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /zones List zones · List Zones observed #
Ask an LLM
“Which zones do I have in my account?”
“Can I filter zones by status or type?”
Tell an agent
List my zones.
Find zones named {name} with status {status}.
POST /zones Create a zone · Create Zone #
Ask an LLM
“How do I add a new domain to Cloudflare?”
“What state is a zone in when I create it?”
Tell an agent
Create zone {name} in account {account}.
Add the domain {name} as a {type} zone.
DELETE /zones/{zone_id} Delete a zone · Delete Zone #
Ask an LLM
“How do I remove a domain from Cloudflare?”
“Can I delete a zone I no longer use?”
Tell an agent destructive · confirm first
Delete zone {zone_id}.
Remove the domain {zone_id} from my account.
GET /zones/{zone_id} Get a zone's details · Zone Details #
Ask an LLM
“What is the status and nameservers of a zone?”
“Can I see the configuration of one zone?”
Tell an agent
Show zone {zone_id}.
Get the details of zone {zone_id}.
PATCH /zones/{zone_id} Pause or edit a zone · Edit Zone #
Ask an LLM
“Can I pause a zone so it stops serving traffic?”
“Is it possible to change a zone's type?”
Tell an agent
Pause zone {zone_id}.
Change zone {zone_id} to type {type}.
PUT /zones/{zone_id}/activation_check Rerun a pending zone's activation check · Rerun the Activation Check #
Ask an LLM
“My new zone is still pending activation, can I trigger the check again?”
“How often can I rerun the activation check for a pending zone?”
Tell an agent
Rerun the activation check for zone {zone_id}.
Trigger a new activation check on pending zone {zone_id}.
POST /zones/{zone_id}/environments/{environment_id}/invalidate_cache Invalidate cached content in one environment · Invalidate Cached Content by Environment #
Ask an LLM
“Can I clear cached content for a single environment without touching production?”
“What happens to cached content in one environment after an invalidate?”
Tell an agent
Invalidate cached content in environment {environment_id} of zone {zone_id}.
Mark environment {environment_id} of zone {zone_id} as stale.
POST /zones/{zone_id}/environments/{environment_id}/purge_cache Purge cached content in one environment · Purge Cached Content by Environment #
Ask an LLM
“Can I permanently delete cached content for one environment?”
“What's the difference between purging and invalidating an environment's cache?”
Tell an agent destructive · confirm first
Purge cached content in environment {environment_id} of zone {zone_id}.
Delete environment {environment_id} cache for zone {zone_id}.
POST /zones/{zone_id}/invalidate_cache Invalidate cached content across the zone · Invalidate Cached Content #
Ask an LLM
“How do I make Cloudflare revalidate cached content for my whole site?”
“Does invalidating cache keep the content in cache?”
Tell an agent
Invalidate cached content for zone {zone_id}.
Mark everything in zone {zone_id} as stale so it revalidates with my origin.
POST /zones/{zone_id}/purge_cache Purge cached content across the zone · Purge Cached Content #
Ask an LLM
“Can I delete cached content for my whole site so it's fetched fresh from my origin?”
“What's the difference between purging and invalidating a zone's cache?”
Tell an agent destructive · confirm first
Purge cached content for zone {zone_id}.
Delete everything cached for zone {zone_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudflare:cloudflare-zone-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudflare-zone-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Welcome to Cloudflare's API documentation site.
  license:
    name: BSD-3-Clause
    url: https://opensource.org/licenses/BSD-3-Clause
  title: Cloudflare Zone API
  version: 4.0.0
servers:
- description: Client API
  url: https://api.cloudflare.com/client/v4
security:
- api_email: []
  api_key: []
- api_token: []
- user_service_key: []
tags:


# --- truncated at 32 KB (107 KB total) ---
# Full source: https://artifacts.apis.io/cloudflare/openapi/cloudflare-zone-api-openapi.yml