Cloudflare Waiting Room API

The Cloudflare Waiting Room API allows developers to manage virtual waiting rooms that route excess visitors to a customizable queue during high traffic. It provides endpoints for creating waiting rooms, configuring thresholds, and managing rules for session handling.

GitHub OpenAPI

Operations 24

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

GET /accounts/{account_id}/waiting_rooms List waiting rooms for an account · List waiting rooms for account #
Ask an LLM
“Which waiting rooms are configured across my whole account?”
“Can I page through account-wide waiting rooms?”
Tell an agent
List all waiting rooms for account {account_id}.
Show page {page} of account {account_id}'s waiting rooms.
GET /zones/{zone_id}/waiting_rooms List waiting rooms on a zone · List waiting rooms for zone #
Ask an LLM
“Which waiting rooms are configured for my zone?”
“Can I page through waiting rooms?”
Tell an agent
List waiting rooms for zone {zone_id}.
Show {per_page} waiting rooms per page for zone {zone_id}.
POST /zones/{zone_id}/waiting_rooms Create a waiting room · Create waiting room #
Ask an LLM
“How do I queue visitors to a host while it's under load?”
“Can I cap how many new users a waiting room lets in per minute?”
Tell an agent
Create waiting room {name} on zone {zone_id} for host {host} letting {new_users_per_minute} new users per minute.
Set up a waiting room {name} on {host} on zone {zone_id} with {total_active_users} active users allowed.
POST /zones/{zone_id}/waiting_rooms/preview Preview a custom waiting room page · Create a custom waiting room page preview #
Ask an LLM
“Can I preview a custom waiting room page before saving it?”
“What does my custom waiting room page look like in a queue?”
Tell an agent
Preview a custom waiting room page for zone {zone_id} with HTML {custom_html}.
Show a waiting room preview for zone {zone_id} using custom page {custom_html}.
GET /zones/{zone_id}/waiting_rooms/settings Get zone-level waiting room settings · Get zone-level Waiting Room settings #
Ask an LLM
“What zone-level waiting room settings are configured?”
“Can I see whether search engines bypass waiting rooms on my zone?”
Tell an agent
Show zone-level waiting room settings for zone {zone_id}.
Get the waiting room bypass setting for zone {zone_id}.
PATCH /zones/{zone_id}/waiting_rooms/settings Patch zone-level waiting room settings · Patch zone-level Waiting Room settings #
Ask an LLM
“Can I allow search engines to bypass waiting rooms without touching the other settings?”
“What does a partial update of zone-level waiting room settings look like?”
Tell an agent
Patch zone-level waiting room settings for zone {zone_id} to allow search engines {bypass}.
Set only the search engine bypass on zone {zone_id} to {bypass}.
PUT /zones/{zone_id}/waiting_rooms/settings Replace zone-level waiting room settings · Update zone-level Waiting Room settings #
Ask an LLM
“How do I turn on search engine bypass for all waiting rooms on a zone?”
“Can I overwrite every zone-level waiting room setting at once?”
Tell an agent
Replace zone-level waiting room settings for zone {zone_id} with search engine bypass {bypass}.
Overwrite all waiting room settings on zone {zone_id}.
DELETE /zones/{zone_id}/waiting_rooms/{waiting_room_id} Delete a waiting room · Delete waiting room #
Ask an LLM
“How do I remove a waiting room I no longer need?”
“Can I delete a waiting room by its ID?”
Tell an agent destructive · confirm first
Delete waiting room {waiting_room_id} from zone {zone_id}.
Remove the waiting room {waiting_room_id} on zone {zone_id}.
GET /zones/{zone_id}/waiting_rooms/{waiting_room_id} Get a waiting room's settings · Waiting room details #
Ask an LLM
“What host, path and user limits does a waiting room have?”
“Can I see the full configuration of one waiting room?”
Tell an agent
Show waiting room {waiting_room_id} on zone {zone_id}.
Get the settings of waiting room {waiting_room_id} for zone {zone_id}.
PATCH /zones/{zone_id}/waiting_rooms/{waiting_room_id} Patch a waiting room's settings · Patch waiting room #
Ask an LLM
“Can I change only the host a waiting room protects without resending everything?”
“What does a partial update of a waiting room look like?”
Tell an agent
Patch waiting room {waiting_room_id} on zone {zone_id} to host {host}.
Change only the path of waiting room {waiting_room_id} for zone {zone_id}.
PUT /zones/{zone_id}/waiting_rooms/{waiting_room_id} Replace a waiting room's settings · Update waiting room #
Ask an LLM
“How do I change the host or path a waiting room protects?”
“Can I overwrite every setting of a waiting room in one request?”
Tell an agent
Replace waiting room {waiting_room_id} on zone {zone_id} with host {host} and {new_users_per_minute} new users per minute.
Overwrite all settings of waiting room {waiting_room_id} for zone {zone_id}.
GET /zones/{zone_id}/waiting_rooms/{waiting_room_id}/events List events for a waiting room · List events #
Ask an LLM
“What events have run on a waiting room?”
“Can I page through a waiting room's event history?”
Tell an agent
List events for waiting room {waiting_room_id} on zone {zone_id}.
Show page {page} of events on waiting room {waiting_room_id} for zone {zone_id}.
POST /zones/{zone_id}/waiting_rooms/{waiting_room_id}/events Create a waiting room event · Create event #
Ask an LLM
“How do I temporarily change a waiting room's settings for a sale?”
“Can I start a waiting room event before the sale begins?”
Tell an agent
Create event {name} on waiting room {waiting_room_id} for zone {zone_id} from {start} to {end}.
Schedule a waiting room event {name} on zone {zone_id} that lets {new_users_per_minute} users per minute.
DELETE /zones/{zone_id}/waiting_rooms/{waiting_room_id}/events/{event_id} Delete a waiting room event · Delete event #
Ask an LLM
“How do I delete one event from a waiting room?”
“Can I stop a scheduled waiting room event by removing it?”
Tell an agent destructive · confirm first
Delete event {event_id} from waiting room {waiting_room_id} in zone {zone_id}.
Remove event {event_id} on waiting room {waiting_room_id}, zone {zone_id}.
GET /zones/{zone_id}/waiting_rooms/{waiting_room_id}/events/{event_id} Get a waiting room event's settings · Event details #
Ask an LLM
“What settings does a waiting room event use?”
“Can I see when a waiting room event starts and ends?”
Tell an agent
Show event {event_id} on waiting room {waiting_room_id} for zone {zone_id}.
Get the configuration of waiting room event {event_id} for zone {zone_id}.
PATCH /zones/{zone_id}/waiting_rooms/{waiting_room_id}/events/{event_id} Change a few settings on a waiting room event · Patch event #
Ask an LLM
“Can I change only the end time of a waiting room event without resending everything?”
“Which event fields can I patch, like turnstile mode?”
Tell an agent
Patch event {event_id} on waiting room {waiting_room_id}, zone {zone_id} to end at {event_end_time}.
Set the turnstile mode of event {event_id} on waiting room {waiting_room_id}, zone {zone_id}, to {turnstile_mode}.
PUT /zones/{zone_id}/waiting_rooms/{waiting_room_id}/events/{event_id} Replace a waiting room event configuration · Update event #
Ask an LLM
“Can I replace a whole waiting room event's configuration with a PUT?”
“What settings can I change on an event when I PUT it?”
Tell an agent
Update event {event_id} on waiting room {waiting_room_id} in zone {zone_id} to start {event_start_time} and end {event_end_time}.
Replace event {event_id} (waiting room {waiting_room_id}, zone {zone_id}) with name {name}.
GET /zones/{zone_id}/waiting_rooms/{waiting_room_id}/events/{event_id}/details Preview a waiting room event's active settings · Preview active event details #
Ask an LLM
“What would a waiting room event look like if it were active right now?”
“Can I preview an event's configuration with inherited waiting room values?”
Tell an agent
Preview the active settings of event {event_id} on waiting room {waiting_room_id} for zone {zone_id}.
Show how waiting room event {event_id} would behave on zone {zone_id}.
GET /zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules List rules for a waiting room · List Waiting Room Rules #
Ask an LLM
“What rules apply to a waiting room?”
“Can I see the rule list for one waiting room?”
Tell an agent
List rules for waiting room {waiting_room_id} on zone {zone_id}.
Show the rule list of waiting room {waiting_room_id} for zone {zone_id}.
POST /zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules Add a rule to a waiting room · Create Waiting Room Rule #
Ask an LLM
“How do I hold back traffic to my site during a flash sale with a waiting room?”
“Can I set a rule that only applies to mobile users in a waiting room?”
Tell an agent
Add a waiting room rule to waiting room {waiting_room_id} on zone {zone_id} that {action} when {expression}.
Create a waiting room rule in {waiting_room_id} on {zone_id} with action {action} and expression {expression}.
PUT /zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules Replace all rules for a waiting room · Replace Waiting Room Rules #
Ask an LLM
“How do I overwrite every rule on a waiting room at once?”
“Can I replace a waiting room's rule list in one request?”
Tell an agent
Replace all rules for waiting room {waiting_room_id} on zone {zone_id}.
Overwrite the entire rule list of waiting room {waiting_room_id} for zone {zone_id}.
DELETE /zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules/{rule_id} Delete a rule from a waiting room · Delete Waiting Room Rule #
Ask an LLM
“Can I remove a single rule from a waiting room?”
“How do I delete one waiting room rule by its ID?”
Tell an agent destructive · confirm first
Delete rule {rule_id} from waiting room {waiting_room_id} in zone {zone_id}.
Remove waiting room rule {rule_id}, waiting room {waiting_room_id}, zone {zone_id}.
PATCH /zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules/{rule_id} Update a waiting room rule · Patch Waiting Room Rule #
Ask an LLM
“How do I change the action of an existing waiting room rule?”
“Can I reorder a waiting room rule?”
Tell an agent
Change the action of waiting room rule {rule_id} in {waiting_room_id} on {zone_id} to {action} for {expression}.
Set waiting room rule {rule_id} in {waiting_room_id} on {zone_id} to {action} when {expression}, position {position}.
GET /zones/{zone_id}/waiting_rooms/{waiting_room_id}/status Check a waiting room's status · Get waiting room status #
Ask an LLM
“Is my waiting room currently queueing traffic?”
“What status is a waiting room in right now?”
Tell an agent
Get the status of waiting room {waiting_room_id} on zone {zone_id}.
Check whether waiting room {waiting_room_id} on {zone_id} is queueing.

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-waiting-room-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-waiting-room-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 Waiting Room 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 (138 KB total) ---
# Full source: https://artifacts.apis.io/cloudflare/openapi/cloudflare-waiting-room-api-openapi.yml