v1

latestOpenAPI 3.1.02026-07-26142186376.1 KB
Agents

Resume Agent Run Stream

Resume an SSE stream for an agent run after disconnection.

Sends missed events since last_event_index, then continues streaming live events if the run is still active.

Three reconnection paths:

  1. Run still active: Sends catch-up events + continues live streaming
  2. Run completed (in buffer): Replays missed buffered events
  3. Run completed (in database): Replays events from database

Client usage: Track event_index from each SSE event. On reconnection, pass the last received event_index as last_event_index.

post/agents/{agent_id}/runs/{run_id}/resume

Path parameters

agent_idstring required
run_idstring required

Response

SSE stream of catch-up and/or live events

{"stackTrail":"paths:/agents/{agent_id}/runs/{run_id}/resume:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}