Mobile / API JSON Response

Native apps can render their own queue UI from Waiting Room JSON.

Send Accept: application/json to a Waiting Room-protected route when json_response_enabled is enabled.
In Queue

Waiting for ticket launch

01:00

The app receives JSON response and renders its own queue UI.

Until next admission check
Waiting Room response
{
  "cfWaitingRoom": {
    "inWaitingRoom": true,
    "waitTime": 1,
    "waitTimeKnown": true,
    "waitTimeFormatted": "1 minute",
    "queueIsFull": false,
    "queueAll": false,
    "lastUpdated": "2026-06-30T11:08:36.037Z",
    "refreshIntervalSeconds": 20,
    "queueingMethod": "fifo",
    "isFIFOQueue": true,
    "isRandomQueue": false,
    "isPassthroughQueue": false,
    "isRejectQueue": false,
    "isEventActive": true,
    "isEventPrequeueing": true,
    "timeUntilEventStart": 12,
    "timeUntilEventStartFormatted": "12 minutes",
    "timeUntilEventEnd": 42,
    "timeUntilEventEndFormatted": "42 minutes",
    "shuffleAtEventStart": true,
    "infiniteQueue": false
  },
  "note": "This is a local mock. Real JSON is returned by Cloudflare Waiting Room when json_response_enabled is true and the request includes Accept: application/json."
}
Demo command:
curl -H "Accept: application/json" https://<waiting-room-host>/tickets