Skip to main content
GET
/
agent
/
runs
/
{runId}
/
stream
Resume or watch an existing run's SSE event stream
curl --request GET \
  --url https://agent.staging.getmodus.com/agent/runs/{runId}/stream \
  --header 'Authorization: Bearer <token>'
"id: 1717000000002-0\ndata: {\"type\":\"token\",\"content\":\" world\"}\n\nid: 1717000000003-0\ndata: {\"type\":\"done\",\"runId\":\"abc-123\"}\n\n"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Last-Event-ID
string

Resume cursor. Set to the id field of the last received SSE frame to replay only new events. Omit (or set to "0") to replay the full event history from the start.

Path Parameters

runId
string
required

Run identifier returned by POST /agent/runs.

Response

SSE stream of run events from the requested cursor onward.

W3C Server-Sent Events stream. Same frame format as POST /agent/runs. Ends with a terminal RunEvent (done/error/cancelled).