Skip to content

Response Format

SSE Event Format

Each SSE event follows the format below:

event: <event type>
data: <JSON data>

Common Event Data Structure

json
{
  "type": "event type",
  "sequence_number": 123,
  "output_index": 0,
  "item_id": "item_123",
  "item": {
    // specific event data
  }
}

Field Description

Field NameTypeDescription
typestringEvent type identifier
sequence_numberintegerEvent sequence number, used for ordering
output_indexintegerOutput index, identifies different output items
item_idstringItem ID, used to identify specific event items
itemobjectSpecific event data content