List waiting rooms for account or zone·续2

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20new_users_per_minute">Link to this property</a>

next_event_prequeue_start_time: optional string

An ISO 8601 timestamp that marks when the next event will begin queueing.

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20next_event_prequeue_start_time">Link to this property</a>

next_event_start_time: optional string

An ISO 8601 timestamp that marks when the next event will start.

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20next_event_start_time">Link to this property</a>

path: optional string

Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20path">Link to this property</a>

queue_all: optional boolean

If queue_all is <code>true</code>, all the traffic that is coming to a route will be sent to the waiting room. No new traffic can get to the route once this field is set and estimated time will become unavailable.

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queue_all">Link to this property</a>

<details>

<summary>

queueing_method: optional "fifo"or "random"or "passthrough"or "reject"

Sets the queueing method used by the waiting room. Changing this parameter from the default queueing method is only available for the Waiting Room Advanced subscription. Regardless of the queueing method, if <code>queue_all</code> is enabled or an event is prequeueing, users in the waiting room will not be accepted to the origin. These users will always see a waiting room page that refreshes automatically. The valid queueing methods are:

  1. <code>fifo</code> (default): First-In-First-Out queue where customers gain access in the order they arrived.
  2. <code>random</code>: Random queue where customers gain access randomly, regardless of arrival time.
  3. <code>passthrough</code>: Users will pass directly through the waiting room and into the origin website. As a result, any configured limits will not be respected while this is enabled. This method can be used as an alternative to disabling a waiting room (with <code>suspended</code>) so that analytics are still reported. This can be used if you wish to allow all traffic normally, but want to restrict traffic during a waiting room event, or vice versa.
  4. <code>reject</code>: Users will be immediately rejected from the waiting room. As a result, no users will reach the origin website while this is enabled. This can be used if you wish to reject all traffic while performing maintenance, block traffic during a specified period of time (an event), or block traffic while events are not occurring. Consider a waiting room used for vaccine distribution that only allows traffic during sign-up events, and otherwise blocks all traffic. For this case, the waiting room uses <code>reject</code>, and its events override this with <code>fifo</code>, <code>random</code>, or <code>passthrough</code>. When this queueing method is enabled and neither <code>queueAll</code> is enabled nor an event is prequeueing, the waiting room page will not refresh automatically.

</summary>

One of the following:

"fifo"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_method%20%3E%20(member)%200">Link to this property</a>

"random"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_method%20%3E%20(member)%201">Link to this property</a>

"passthrough"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_method%20%3E%20(member)%202">Link to this property</a>

"reject"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_method%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_method">Link to this property</a>

<details>

<summary>

queueing_status_code: optional 200or 202or 429

HTTP status code returned to a user while in the queue.

</summary>

One of the following:

200

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_status_code%20%3E%20(member)%200">Link to this property</a>

202

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_status_code%20%3E%20(member)%201">Link to this property</a>

429

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_status_code%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20queueing_status_code">Link to this property</a>

session_duration: optional number

Lifetime of a cookie (in minutes) set by Cloudflare for users who get access to the route. If a user is not seen by Cloudflare again in that time period, they will be treated as a new user that visits the route.

maximum30

minimum1

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20session_duration">Link to this property</a>

suspended: optional boolean

Suspends or allows traffic going to the waiting room. If set to <code>true</code>, the traffic will not go to the waiting room.

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

total_active_users: optional number

Sets the total number of active user sessions on the route at a point in time. A route is a combination of host and path on which a waiting room is available. This value is used as a baseline for the total number of active user sessions on the route. It is possible to have a situation where there are more or less active users sessions on the route based on the traffic patterns at that time around the world.

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20total_active_users">Link to this property</a>

<details>

<summary>

turnstile_action: optional "log"or "infinite_queue"

Which action to take when a bot is detected using Turnstile. <code>log</code> will have no impact on queueing behavior, simply keeping track of how many bots are detected in Waiting Room Analytics. <code>infinite_queue</code> will send bots to a false queueing state, where they will never reach your origin. <code>infinite_queue</code> requires Advanced Waiting Room.

</summary>

One of the following:

"log"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_action%20%3E%20(member)%200">Link to this property</a>

"infinite_queue"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_action">Link to this property</a>

<details>

<summary>

turnstile_mode: optional "off"or "invisible"or "visible_non_interactive"or "visible_managed"

Which Turnstile widget type to use for detecting bot traffic. See <a href="https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types">the Turnstile documentation</a> for the definitions of these widget types. Set to <code>off</code> to disable the Turnstile integration entirely. Setting this to anything other than <code>off</code> or <code>invisible</code> requires Advanced Waiting Room.

</summary>

One of the following:

"off"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%200">Link to this property</a>

"invisible"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%201">Link to this property</a>

"visible_non_interactive"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%202">Link to this property</a>

"visible_managed"

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode">Link to this property</a>

</details>

Link to this property

<details>

<summary>

result_info: optional object {count, page, per_page, 2 more }

</summary>

count: optional number

Total number of results for the requested service.

<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20count">Link to this property</a>

page: optional number

Current page within paginated list of results.

<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20page">Link to this property</a>

per_page: optional number

Number of results per page of results.

<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20per_page">Link to this property</a>

total_count: optional number

Total results available without any search parameters.

<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20total_count">Link to this property</a>

total_pages: optional number

The number of total pages in the entire result set.

<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20total_pages">Link to this property</a>

</details>

Link to this property

List waiting rooms for account or zone

HTTP

HTTPTypeScriptPythonGoTerraform

curl https://api.cloudflare.com/client/v4/$ACCOUNTS_OR_ZONES/$ACCOUNT_OR_ZONE_ID/waiting_rooms \
    -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

200 example

{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "id": "699d98642c564d2e855e9661899b7252",
      "additional_routes": [
        {
          "host": "shop2.example.com",
          "path": "/shop2/checkout"
        }
      ],
      "cookie_attributes": {
        "samesite": "auto",
        "secure": "auto"
      },
      "cookie_suffix": "abcd",
      "created_on": "2014-01-01T05:20:00.12345Z",
      "custom_page_html": "{} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Queue all enabled {{/waitTimeKnown}}",
      "default_template_language": "es-ES",
      "description": "Production - DO NOT MODIFY",
      "disable_session_renewal": false,
      "enabled_origin_commands": [
        "revoke"
      ],
      "host": "shop.example.com",
      "json_response_enabled": false,
      "modified_on": "2014-01-01T05:20:00.12345Z",
      "name": "production_webinar",
      "new_users_per_minute": 200,
      "next_event_prequeue_start_time": "2021-09-28T15:00:00Z",
      "next_event_start_time": "2021-09-28T15:00:00Z",
      "path": "/shop/checkout",
      "queue_all": true,
      "queueing_method": "fifo",
      "queueing_status_code": 202,
      "session_duration": 1,
      "suspended": true,
      "total_active_users": 200,
      "turnstile_action": "log",
      "turnstile_mode": "off"
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}
Returns Examples

200 example

{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "id": "699d98642c564d2e855e9661899b7252",
      "additional_routes": [
        {
          "host": "shop2.example.com",
          "path": "/shop2/checkout"
        }
      ],
      "cookie_attributes": {
        "samesite": "auto",
        "secure": "auto"
      },
      "cookie_suffix": "abcd",
      "created_on": "2014-01-01T05:20:00.12345Z",
      "custom_page_html": "{} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Queue all enabled {{/waitTimeKnown}}",
      "default_template_language": "es-ES",
      "description": "Production - DO NOT MODIFY",
      "disable_session_renewal": false,
      "enabled_origin_commands": [
        "revoke"
      ],
      "host": "shop.example.com",
      "json_response_enabled": false,
      "modified_on": "2014-01-01T05:20:00.12345Z",
      "name": "production_webinar",
      "new_users_per_minute": 200,
      "next_event_prequeue_start_time": "2021-09-28T15:00:00Z",
      "next_event_start_time": "2021-09-28T15:00:00Z",
      "path": "/shop/checkout",
      "queue_all": true,
      "queueing_method": "fifo",
      "queueing_status_code": 202,
      "session_duration": 1,
      "suspended": true,
      "total_active_users": 200,
      "turnstile_action": "log",
      "turnstile_mode": "off"
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}


description: Answers to common Waiting Room questions and issues. title: FAQ image: https://developers.cloudflare.com/waiting-room/troubleshooting/og.png?v=8503633be8be7fc4


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/waiting-room/llms.txt
Use this file to discover all available pages before exploring further.