Mobile / API JSON 응답

Native app은 Waiting Room JSON을 받아 자체 대기 UI를 렌더링할 수 있습니다.

json_response_enabled가 활성화된 Waiting Room 보호 경로에 Accept: application/json 헤더를 보내면 됩니다.
대기 중

티켓 오픈 대기 중

01:00

앱이 JSON response를 받아 자체 queue UI로 표시합니다.

다음 입장 확인까지
대기 중 응답
{
  "cfWaitingRoom": {
    "inWaitingRoom": true,
    "waitTime": 1,
    "waitTimeKnown": true,
    "waitTimeFormatted": "1분",
    "queueIsFull": false,
    "queueAll": false,
    "lastUpdated": "2026-06-30T09:44:07.516Z",
    "refreshIntervalSeconds": 20,
    "queueingMethod": "fifo",
    "isFIFOQueue": true,
    "isRandomQueue": false,
    "isPassthroughQueue": false,
    "isRejectQueue": false,
    "isEventActive": true,
    "isEventPrequeueing": true,
    "timeUntilEventStart": 12,
    "timeUntilEventStartFormatted": "12분",
    "timeUntilEventEnd": 42,
    "timeUntilEventEndFormatted": "42분",
    "shuffleAtEventStart": true,
    "infiniteQueue": false
  },
  "note": "로컬 mock입니다. 실제 JSON은 json_response_enabled가 true이고 Accept: application/json 요청이 들어올 때 Cloudflare Waiting Room이 반환합니다."
}
데모 명령어:
curl -H "Accept: application/json" https://<waiting-room-host>/tickets