Skip to main content
POST
/
threads
/
{thread_id}
/
stream
/
events
Stream Thread Events
curl --request POST \
  --url https://api.example.com/threads/{thread_id}/stream/events \
  --header 'Content-Type: application/json' \
  --data '
{
  "channels": [
    "<string>"
  ],
  "namespaces": [
    [
      "<string>"
    ]
  ],
  "depth": 1,
  "since": 1
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Path Parameters

thread_id
string
required

Body

application/json

Body for POST /threads/{thread_id}/stream/events.

Thread-scoped, matching the LangGraph SDK: no run id — the stream carries events for whatever run(s) execute on the thread.

channels
string[]
required

Channels to subscribe to (e.g. messages, values, lifecycle).

namespaces
string[][] | null

Subgraph namespace prefixes to include.

depth
integer | null

Max subgraph nesting depth to include.

Required range: x >= 0
since
integer | null

Last seq the client saw; events at or below it are skipped on resume.

Required range: x >= 0

Response

SSE stream of protocol event envelopes