Waiting Rooms
waiting_rooms
Methods
Creates a new waiting room.
Deletes a waiting room.
Patches a configured waiting room.
Fetches a single configured waiting room.
Lists waiting rooms.
Updates a configured waiting room.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Waiting Rooms Write
Identifier
Domain types
Events
waiting_rooms.events
Methods
Only available for the Waiting Room Advanced subscription. Creates an event for a waiting room. An event takes place during a specified period of time, temporarily changing the behavior of a waiting room. While the event is active, some of the properties in the event's configuration may either override or inherit from the waiting room's configuration. Note that events cannot overlap with each other, so only one event can be active at a time.
Deletes an event for a waiting room.
Patches a configured event for a waiting room.
Fetches a single configured event for a waiting room.
Lists events for a waiting room.
Updates a configured event for a waiting room.
Domain types
waiting_rooms.events.details
Methods
Previews an event's configuration as if it was active. Inherited fields from the waiting room will be displayed with their current values.
Domain types
Page
waiting_rooms.page
Methods
Creates a waiting room page preview. Upload a custom waiting room page for preview. You will receive a preview URL in the form http://waitingrooms.dev/preview/<uuid>
. You can use the following query parameters to change the state of the preview:
force_queue
: Boolean indicating if all users will be queued in the waiting room and no one will be let into the origin website (also known as queueAll).queue_is_full
: Boolean indicating if the waiting room's queue is currently full and not accepting new users at the moment.queueing_method
: The queueing method currently used by the waiting room.- fifo indicates a FIFO queue.
- random indicates a Random queue.
- passthrough indicates a Passthrough queue. Keep in mind that the waiting room page will only be displayed if
force_queue=true
orevent=prequeueing
— for other cases the request will pass through to the origin. For our preview, this will be a fake origin website returning "Welcome". - reject indicates a Reject queue.
event
: Used to preview a waiting room event.- none indicates no event is occurring.
- prequeueing indicates that an event is prequeueing (between
prequeue_start_time
andevent_start_time
). - started indicates that an event has started (between
event_start_time
andevent_end_time
).
shuffle_at_event_start
: Boolean indicating if the event will shuffle users in the prequeue when it starts. This can only be set to true if an event is active (event
is not none).
For example, you can make a request to http://waitingrooms.dev/preview/<uuid>?force_queue=false&queue_is_full=false&queueing_method=random&event=started&shuffle_at_event_start=true
6. waitTime
: Non-zero, positive integer indicating the estimated wait time in minutes. The default value is 10 minutes.
For example, you can make a request to http://waitingrooms.dev/preview/<uuid>?waitTime=50
to configure the estimated wait time as 50 minutes.
Rules
waiting_rooms.rules
Methods
Only available for the Waiting Room Advanced subscription. Creates a rule for a waiting room.
Deletes a rule for a waiting room.
Patches a rule for a waiting room.
Lists rules for a waiting room.
Only available for the Waiting Room Advanced subscription. Replaces all rules for a waiting room.
Domain types
Settings
waiting_rooms.settings
Methods
Patch zone-level Waiting Room settings
Get zone-level Waiting Room settings
Update zone-level Waiting Room settings
Domain types
Statuses
waiting_rooms.statuses
Methods
Fetches the status of a configured waiting room. Response fields include:
status
: String indicating the status of the waiting room. The possible status are:- not_queueing indicates that the configured thresholds have not been met and all users are going through to the origin.
- queueing indicates that the thresholds have been met and some users are held in the waiting room.
- event_prequeueing indicates that an event is active and is currently prequeueing users before it starts.
event_id
: String of the current event'sid
if an event is active, otherwise an empty string.estimated_queued_users
: Integer of the estimated number of users currently waiting in the queue.estimated_total_active_users
: Integer of the estimated number of users currently active on the origin.max_estimated_time_minutes
: Integer of the maximum estimated time currently presented to the users.