Re-attach to a running turn after a dropped connection
GET
/api/v1/chat/sessions/{sessionId}/stream/resume
const url = 'https://app.avera.io/api/v1/chat/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stream/resume?sinceId=0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.avera.io/api/v1/chat/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stream/resume?sinceId=0'Replays every buffered event with id greater than sinceId, then stays live until the turn finishes. Messages persist server-side regardless: this only restores the live view a disconnect would otherwise lose.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”sessionId
required
string format: uuid
Query Parameters
Section titled “Query Parameters”sinceId
integer format: int64
Responses
Section titled “Responses”OK
Media typetext/event-stream
object
timeout
integer format: int64