---
title: Get waiting room status
---

[Skip to content](#_top)

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

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

[Statuses](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/statuses)

Copy Markdown

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

---

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

# Get waiting room status

client.WaitingRooms.Statuses.Get(ctx, waitingRoomID, query) (\*[StatusGetResponse](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.statuses%20%3E%20(model)%20StatusGetResponse%20%3E%20(schema)>), error)

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

Fetches the status of a configured waiting room. Response fields include:

1. `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.
   - **suspended** indicates that the room is suspended.
2. `event_id`: String of the current event’s `id` if an event is active, otherwise an empty string.
3. `estimated_queued_users`: Integer of the estimated number of users currently waiting in the queue.
4. `estimated_total_active_users`: Integer of the estimated number of users currently active on the origin.
5. `max_estimated_time_minutes`: Integer of the maximum estimated time currently presented to the users.

##### 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)

`Waiting Rooms Read``Waiting Rooms Write`

##### ParametersExpand Collapse

waitingRoomID string

[Link to this property](<#(resource)%20waiting_rooms.statuses%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20waiting_room_id%20%3E%20(schema)>)

<details>

<summary>

query StatusGetParams

</summary>

ZoneID param.Field\[string]

Identifier.

maxLength32

<a href="#(resource)%20waiting_rooms.statuses%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20zone_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20waiting_rooms.statuses%20%3E%20(method)%20get%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type StatusGetResponse struct{…}

</summary>

EstimatedQueuedUsers int64Optional

<a href="#(resource)%20waiting_rooms.statuses%20%3E%20(model)%20StatusGetResponse%20%3E%20(schema)%20%3E%20(property)%20estimated_queued_users">Link to this property</a>

EstimatedTotalActiveUsers int64Optional

<a href="#(resource)%20waiting_rooms.statuses%20%3E%20(model)%20StatusGetResponse%20%3E%20(schema)%20%3E%20(property)%20estimated_total_active_users">Link to this property</a>

EventID stringOptional

<a href="#(resource)%20waiting_rooms.statuses%20%3E%20(model)%20StatusGetResponse%20%3E%20(schema)%20%3E%20(property)%20event_id">Link to this property</a>

MaxEstimatedTimeMinutes int64Optional

<a href="#(resource)%20waiting_rooms.statuses%20%3E%20(model)%20StatusGetResponse%20%3E%20(schema)%20%3E%20(property)%20max_estimated_time_minutes">Link to this property</a>

<details>

<summary>

Status StatusGetResponseStatusOptional

</summary>

One of the following:

const StatusGetResponseStatusEventPrequeueing StatusGetResponseStatus = "event\_prequeueing"

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

const StatusGetResponseStatusNotQueueing StatusGetResponseStatus = "not\_queueing"

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

const StatusGetResponseStatusQueueing StatusGetResponseStatus = "queueing"

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

const StatusGetResponseStatusSuspended StatusGetResponseStatus = "suspended"

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

</details>

<a href="#(resource)%20waiting_rooms.statuses%20%3E%20(model)%20StatusGetResponse%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

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

### Get waiting room status

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/waiting_rooms"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  status, err := client.WaitingRooms.Statuses.Get(
    context.TODO(),
    "699d98642c564d2e855e9661899b7252",
    waiting_rooms.StatusGetParams{
      ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", status.EventID)
}
```

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"
      }
    }
  ],
  "result": {
    "estimated_queued_users": 0,
    "estimated_total_active_users": 0,
    "event_id": "25756b2dfe6e378a06b033b670413757",
    "max_estimated_time_minutes": 0,
    "status": "queueing"
  },
  "success": true
}
```

##### 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"
      }
    }
  ],
  "result": {
    "estimated_queued_users": 0,
    "estimated_total_active_users": 0,
    "event_id": "25756b2dfe6e378a06b033b670413757",
    "max_estimated_time_minutes": 0,
    "status": "queueing"
  },
  "success": true
}
```