Skip to main content
Waiting Rooms allow you to queue visitors when your website experiences high traffic, ensuring a smooth user experience and protecting your origin servers from being overwhelmed.

Create a waiting room

Creates a new waiting room for a zone.
string
required
The zone identifier
string
required
The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname of this zone.
string
required
A unique name to identify the waiting room. Only alphanumeric characters, hyphens, and underscores are allowed.
number
required
The number of new users that will be let into the route every minute.
number
required
The total number of active user sessions on the route at a point in time.
string
Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. Defaults to /.
string
A description of the waiting room.
number
Lifetime of a cookie (in minutes) set by Cloudflare for users who get access to the route. Defaults to 5 minutes.
boolean
Disables automatic renewal of session cookies. Defaults to false.
boolean
Suspends the waiting room, allowing all traffic through. Defaults to false.
boolean
Whether to queue all visitors, regardless of traffic levels. Defaults to false.
boolean
If true, requests to the waiting room with the header Accept: application/json will receive a JSON response object.
string
Custom HTML to display while users are in the waiting room.
string
The language to use for the default waiting room page. Available languages: de-DE, en-US, es-ES, fr-FR, id-ID, it-IT, ja-JP, ko-KR, nl-NL, pl-PL, pt-BR, tr-TR, zh-CN, zh-TW.
Configures cookie attributes for the waiting room cookie.
string
SameSite attribute: auto, lax, none, or strict
string
Secure attribute: auto, always, or never
array
Additional hostname and path combinations to which this waiting room will be applied.
string
The hostname for this additional route
string
The path for this additional route
string
The waiting room identifier
string
Timestamp when the waiting room was created
string
Timestamp when the waiting room was last modified
string
The waiting room name
string
The hostname where the waiting room is applied
string
The path where the waiting room is applied
number
The total number of active user sessions allowed
number
The number of new users admitted per minute

Update a waiting room

Updates a configured waiting room.
string
required
The waiting room identifier
string
required
The zone identifier

List waiting rooms

Lists all waiting rooms for an account or zone.
string
The zone identifier (use either zone_id or account_id)
string
The account identifier (use either zone_id or account_id)

Get a waiting room

Fetches details for a single configured waiting room.
string
required
The waiting room identifier
string
required
The zone identifier

Edit a waiting room

Patches a configured waiting room, updating only the specified fields.
string
required
The waiting room identifier
string
required
The zone identifier

Delete a waiting room

Deletes a waiting room.
string
required
The waiting room identifier
string
required
The zone identifier

Preview waiting room

Get a preview of how a waiting room will look.

Waiting room events

Manage scheduled events for waiting rooms to handle predictable traffic surges.

Waiting room rules

Manage rules to bypass or customize waiting room behavior.

Get waiting room status

Get the current status and metrics for a waiting room.

Waiting room settings

Manage zone-level waiting room settings.