Interrupt the session's active turn
POST
/api/v1/chat/sessions/{sessionId}/interrupt
const url = 'https://app.avera.io/api/v1/chat/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/interrupt';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.avera.io/api/v1/chat/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/interruptThe agent loop notices between stream events and between tool calls: the partial assistant text persists with finishReason=interrupted, skipped tool calls get cancelled results, and the turn ends with a normal done event.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”sessionId
required
string format: uuid
Responses
Section titled “Responses”OK