Skip to main content
GET
Stream a hotel AI search task's events
The task’s events as Server-Sent Events, from the start or after Last-Event-ID. The stream ends when the task ends its turn, or after 45 seconds: reconnect with the Last-Event-ID of the last event received.
The events, their order and how to resume a stream are described in Waiting for results.

Authorizations

X-API-Key
string
header
required

Headers

Last-Event-ID
string

The id of the last event received.

Maximum string length: 20
Example:

"7"

Path Parameters

task_id
string
required
Required string length: 1 - 100
Example:

"atk_example"

Response

The events.

Server-Sent Events, one per task event: id is its sequence number (send it back as Last-Event-ID to resume), event is task.status (status submitted or working), agent.message (the early reply first), hotels.page, or task.completed / task.input_required / task.failed / task.canceled / task.expired for the status that ends the turn; data is JSON and carries task_id and context_id. The stream ends with the turn, or after 45 seconds: resume it with the Last-Event-ID of the last event received.