Example
json
{
"type": "session.closed",
"event_id": "evt_closed_001",
"client_event_id": "evt_close_001",
"reason": "close_requested",
"session": {
"id": "live_abc123",
"model": "gpt-live-1",
"status": "active",
"expires_at": 1788555600,
"instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",
"input": [],
"audio": {
"format": {
"type": "audio/pcm",
"rate": 24000
},
"output": {
"voice": "marin"
}
},
"delegation": {
"type": "client"
}
},
"usage": {
"seconds": 45.8
}
}error
Reports an error in the Live session, such as an invalid client command. Use error.client_event_id, when present, to identify the command that caused the error.