---
title: Events
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api)

[Waiting Rooms](https://developers.cloudflare.com/api/resources/waiting_rooms)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Events

##### [List events](https://developers.cloudflare.com/api/resources/waiting_rooms/subresources/events/methods/list)

GET/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events

##### [Event details](https://developers.cloudflare.com/api/resources/waiting_rooms/subresources/events/methods/get)

GET/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### [Create event](https://developers.cloudflare.com/api/resources/waiting_rooms/subresources/events/methods/create)

POST/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events

##### [Update event](https://developers.cloudflare.com/api/resources/waiting_rooms/subresources/events/methods/update)

PUT/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### [Patch event](https://developers.cloudflare.com/api/resources/waiting_rooms/subresources/events/methods/edit)

PATCH/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### [Delete event](https://developers.cloudflare.com/api/resources/waiting_rooms/subresources/events/methods/delete)

DELETE/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### ModelsExpand Collapse

<details>

<summary>

Event object {id, created\_on, custom\_page\_html, 15 more }

</summary>

id: optional string

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

custom\_page\_html: optional string

If set, the event will override the waiting room’s <code>custom_page_html</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20custom_page_html">Link to this property</a>

description: optional string

A note that you can use to add more details about the event.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

disable\_session\_renewal: optional boolean

If set, the event will override the waiting room’s <code>disable_session_renewal</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20disable_session_renewal">Link to this property</a>

event\_end\_time: optional string

An ISO 8601 timestamp that marks the end of the event.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20event_end_time">Link to this property</a>

event\_start\_time: optional string

An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event’s configuration. The start time must be at least one minute before <code>event_end_time</code>.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20event_start_time">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: optional string

A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

new\_users\_per\_minute: optional number

If set, the event will override the waiting room’s <code>new_users_per_minute</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>total_active_users</code> property is also set.

maximum2147483647

minimum200

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

prequeue\_start\_time: optional string

An ISO 8601 timestamp that marks when to begin queueing all users before the event starts. The prequeue must start at least five minutes before <code>event_start_time</code>.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20prequeue_start_time">Link to this property</a>

queueing\_method: optional string

If set, the event will override the waiting room’s <code>queueing_method</code> property while it is active. If null, the event will inherit it.

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

session\_duration: optional number

If set, the event will override the waiting room’s <code>session_duration</code> property while it is active. If null, the event will inherit it.

maximum30

minimum1

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

shuffle\_at\_event\_start: optional boolean

If enabled, users in the prequeue will be shuffled randomly at the <code>event_start_time</code>. Requires that <code>prequeue_start_time</code> is not null. This is useful for situations when many users will join the event prequeue at the same time and you want to shuffle them to ensure fairness. Naturally, it makes the most sense to enable this feature when the <code>queueing_method</code> during the event respects ordering such as **fifo**, or else the shuffling may be unnecessary.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20shuffle_at_event_start">Link to this property</a>

suspended: optional boolean

Suspends or allows an event. If set to <code>true</code>, the event is ignored and traffic will be handled based on the waiting room configuration.

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

total\_active\_users: optional number

If set, the event will override the waiting room’s <code>total_active_users</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>new_users_per_minute</code> property is also set.

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%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"

If set, the event will override the waiting room’s <code>turnstile_action</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

"log"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%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.events%20%3E%20(model)%20event%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.events%20%3E%20(model)%20event%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"

If set, the event will override the waiting room’s <code>turnstile_mode</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

"off"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%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.events%20%3E%20(model)%20event%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.events%20%3E%20(model)%20event%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.events%20%3E%20(model)%20event%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.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode">Link to this property</a>

</details>

[Link to this property](<#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)>)

<details>

<summary>

EventDeleteResponse object {id }

</summary>

id: optional string

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20waiting_rooms.events%20%3E%20(model)%20event_delete_response%20%3E%20(schema)>)

#### EventsDetails

##### [Preview active event details](https://developers.cloudflare.com/api/resources/waiting_rooms/subresources/events/subresources/details/methods/get)

GET/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}/details

##### ModelsExpand Collapse

<details>

<summary>

EventQuery object {event\_end\_time, event\_start\_time, name, 12 more }

</summary>

event\_end\_time: string

An ISO 8601 timestamp that marks the end of the event.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20event_end_time">Link to this property</a>

event\_start\_time: string

An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event’s configuration. The start time must be at least one minute before <code>event_end_time</code>.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20event_start_time">Link to this property</a>

name: string

A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

custom\_page\_html: optional string

If set, the event will override the waiting room’s <code>custom_page_html</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20custom_page_html">Link to this property</a>

description: optional string

A note that you can use to add more details about the event.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

disable\_session\_renewal: optional boolean

If set, the event will override the waiting room’s <code>disable_session_renewal</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20disable_session_renewal">Link to this property</a>

new\_users\_per\_minute: optional number

If set, the event will override the waiting room’s <code>new_users_per_minute</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>total_active_users</code> property is also set.

maximum2147483647

minimum200

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

prequeue\_start\_time: optional string

An ISO 8601 timestamp that marks when to begin queueing all users before the event starts. The prequeue must start at least five minutes before <code>event_start_time</code>.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20prequeue_start_time">Link to this property</a>

queueing\_method: optional string

If set, the event will override the waiting room’s <code>queueing_method</code> property while it is active. If null, the event will inherit it.

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

session\_duration: optional number

If set, the event will override the waiting room’s <code>session_duration</code> property while it is active. If null, the event will inherit it.

maximum30

minimum1

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

shuffle\_at\_event\_start: optional boolean

If enabled, users in the prequeue will be shuffled randomly at the <code>event_start_time</code>. Requires that <code>prequeue_start_time</code> is not null. This is useful for situations when many users will join the event prequeue at the same time and you want to shuffle them to ensure fairness. Naturally, it makes the most sense to enable this feature when the <code>queueing_method</code> during the event respects ordering such as **fifo**, or else the shuffling may be unnecessary.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20shuffle_at_event_start">Link to this property</a>

suspended: optional boolean

Suspends or allows an event. If set to <code>true</code>, the event is ignored and traffic will be handled based on the waiting room configuration.

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

total\_active\_users: optional number

If set, the event will override the waiting room’s <code>total_active_users</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>new_users_per_minute</code> property is also set.

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%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"

If set, the event will override the waiting room’s <code>turnstile_action</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

"log"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%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.events.details%20%3E%20(model)%20event_query%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.events.details%20%3E%20(model)%20event_query%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"

If set, the event will override the waiting room’s <code>turnstile_mode</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

"off"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%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.events.details%20%3E%20(model)%20event_query%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.events.details%20%3E%20(model)%20event_query%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.events.details%20%3E%20(model)%20event_query%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.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode">Link to this property</a>

</details>

[Link to this property](<#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)>)

<details>

<summary>

DetailGetResponse object {id, created\_on, custom\_page\_html, 13 more }

</summary>

id: optional string

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

custom\_page\_html: optional string

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20custom_page_html">Link to this property</a>

description: optional string

A note that you can use to add more details about the event.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

disable\_session\_renewal: optional boolean

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20disable_session_renewal">Link to this property</a>

event\_end\_time: optional string

An ISO 8601 timestamp that marks the end of the event.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20event_end_time">Link to this property</a>

event\_start\_time: optional string

An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event’s configuration. The start time must be at least one minute before <code>event_end_time</code>.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20event_start_time">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: optional string

A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

new\_users\_per\_minute: optional number

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

prequeue\_start\_time: optional string

An ISO 8601 timestamp that marks when to begin queueing all users before the event starts. The prequeue must start at least five minutes before <code>event_start_time</code>.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20prequeue_start_time">Link to this property</a>

queueing\_method: optional string

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

session\_duration: optional number

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

shuffle\_at\_event\_start: optional boolean

If enabled, users in the prequeue will be shuffled randomly at the <code>event_start_time</code>. Requires that <code>prequeue_start_time</code> is not null. This is useful for situations when many users will join the event prequeue at the same time and you want to shuffle them to ensure fairness. Naturally, it makes the most sense to enable this feature when the <code>queueing_method</code> during the event respects ordering such as **fifo**, or else the shuffling may be unnecessary.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)%20%3E%20(property)%20shuffle_at_event_start">Link to this property</a>

suspended: optional boolean

Suspends or allows an event. If set to <code>true</code>, the event is ignored and traffic will be handled based on the waiting room configuration.

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

total\_active\_users: optional number

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

</details>

[Link to this property](<#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20detail_get_response%20%3E%20(schema)>)