List waiting rooms for account or zone
GET/{accounts_or_zones}/{account_or_zone_id}/waiting_rooms
Lists waiting rooms for account or zone.
Security
<details>
<summary>API Token</summary>
The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.
Example:<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>
</details>
<details>
<summary>API Email + API Key</summary>
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:<code>X-Auth-Email: user@example.com</code>
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>
</details>
Accepted Permissions (at least one required)
Account Waiting Rooms Read
P ath ParametersExpand Collapse
account_id: optional string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zone_id: optional string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Q uery ParametersExpand Collapse
page: optional number
Page number of paginated results.
minimum1
per_page: optional number
Maximum number of results per page. Must be a multiple of 5.
maximum1000
minimum5
ReturnsExpand Collapse
<details>
<summary>
errors: array of object {code, message, documentation_url, source }
</summary>
code: number
minimum1000
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>
message: string
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>
documentation_url: optional string
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>
<details>
<summary>
source: optional object {pointer }
</summary>
pointer: optional string
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>
</details>
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>
</details>
<details>
<summary>
messages: array of object {code, message, documentation_url, source }
</summary>
code: number
minimum1000
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>
message: string
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>
documentation_url: optional string
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>
<details>
<summary>
source: optional object {pointer }
</summary>
pointer: optional string
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>
</details>
<a href="#(resource)%20waiting_rooms%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>
</details>
success: true
Whether the API call was successful.
<details>
<summary>
result: optional array of <a href="https://developers.cloudflare.com/api/resources/waiting_rooms#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)">WaitingRoom</a> { id, additional_routes, cookie_attributes, 23 more }
</summary>
id: optional string
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>
<details>
<summary>
additional_routes: optional array of <a href="https://developers.cloudflare.com/api/resources/waiting_rooms#(resource)%20waiting_rooms%20%3E%20(model)%20additional_routes%20%3E%20(schema)">AdditionalRoutes</a> { host, path }
Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms.
</summary>
host: optional string
The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://).
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20additional_routes%20%3E%20(schema)%20%3E%20(property)%20host">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)%20additional_routes%20%3E%20(schema)%20%3E%20(property)%20path">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)%20additional_routes">Link to this property</a>
<details>
<summary>
cookie_attributes: optional <a href="https://developers.cloudflare.com/api/resources/waiting_rooms#(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)">CookieAttributes</a> { samesite, secure }
Configures cookie attributes for the waiting room cookie. This encrypted cookie stores a user’s status in the waiting room, such as queue position.
</summary>
<details>
<summary>
samesite: optional "auto"or "lax"or "none"or "strict"
Configures the SameSite attribute on the waiting room cookie. Value <code>auto</code> will be translated to <code>lax</code> or <code>none</code> depending if Always Use HTTPS is enabled. Note that when using value <code>none</code>, the secure attribute cannot be set to <code>never</code>.
</summary>
One of the following:
"auto"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20samesite%20%3E%20(member)%200">Link to this property</a>
"lax"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20samesite%20%3E%20(member)%201">Link to this property</a>
"none"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20samesite%20%3E%20(member)%202">Link to this property</a>
"strict"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20samesite%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)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20samesite">Link to this property</a>
<details>
<summary>
secure: optional "auto"or "always"or "never"
Configures the Secure attribute on the waiting room cookie. Value <code>always</code> indicates that the Secure attribute will be set in the Set-Cookie header, <code>never</code> indicates that the Secure attribute will not be set, and <code>auto</code> will set the Secure attribute depending if Always Use HTTPS is enabled.
</summary>
One of the following:
"auto"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20secure%20%3E%20(member)%200">Link to this property</a>
"always"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20secure%20%3E%20(member)%201">Link to this property</a>
"never"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20secure%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)%20cookie_attributes%20%2B%20(resource)%20waiting_rooms%20%3E%20(model)%20cookie_attributes%20%3E%20(schema)%20%3E%20(property)%20secure">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)%20cookie_attributes">Link to this property</a>
cookie_suffix: optional string
Appends a ’_’ + a custom suffix to the end of Cloudflare Waiting Room’s cookie name(__cf_waitingroom). If <code>cookie_suffix</code> is “abcd”, the cookie name will be <code>__cf_waitingroom_abcd</code>. This field is required if using <code>additional_routes</code>.
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20cookie_suffix">Link to this property</a>
created_on: optional string
formatdate-time
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>
custom_page_html: optional string
Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custom_page_html is provided, the default waiting room will be used. The template is based on mustache ( <a href="https://mustache.github.io/">https://mustache.github.io/</a> ). There are several variables that are evaluated by the Cloudflare edge:
- {{<code>waitTimeKnown</code>}} Acts like a boolean value that indicates the behavior to take when wait time is not available, for instance when queue_all is true.
- {{<code>waitTimeFormatted</code>}} Estimated wait time for the user. For example, five minutes. Alternatively, you can use:
- {{<code>waitTime</code>}} Number of minutes of estimated wait for a user.
- {{<code>waitTimeHours</code>}} Number of hours of estimated wait for a user (<code>Math.floor(waitTime/60)</code>).
- {{<code>waitTimeHourMinutes</code>}} Number of minutes above the <code>waitTimeHours</code> value (<code>waitTime%60</code>).
- {{<code>queueIsFull</code>}} Changes to true when no more people can be added to the queue.
To view the full list of variables, look at the <code>cfWaitingRoom</code> object described under the <code>json_response_enabled</code> property in other Waiting Room API calls.
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20custom_page_html">Link to this property</a>
<details>
<summary>
default_template_language: optional "en-US"or "es-ES"or "de-DE"or 36 more
The language of the default page template. If no default_template_language is provided, then <code>en-US</code> (English) will be used.
</summary>
One of the following:
"en-US"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%200">Link to this property</a>
"es-ES"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%201">Link to this property</a>
"de-DE"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%202">Link to this property</a>
"fr-FR"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%203">Link to this property</a>
"it-IT"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%204">Link to this property</a>
"ja-JP"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%205">Link to this property</a>
"ko-KR"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%206">Link to this property</a>
"pt-BR"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%207">Link to this property</a>
"zh-CN"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%208">Link to this property</a>
"zh-TW"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%209">Link to this property</a>
"nl-NL"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%2010">Link to this property</a>
"pl-PL"
<a href="#(resource)%20waiting_rooms%20%3E%20(model)%20waiting_room%20%3E%20(schema)%20%3E%20(property)%20default_template_language%20%3E%20(member)%2011">Link to this property</a>
