POST
/
threads
/
{thread_id}
/
runs
/
stream
Create Run, Stream Output
curl --request POST \
  --url https://api.b-bot.space/v2/threads/{thread_id}/runs/stream \
  --header 'Content-Type: application/json' \
  --data '{
  "assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "checkpoint": {
    "thread_id": "<string>",
    "checkpoint_ns": "<string>",
    "checkpoint_id": "<string>",
    "checkpoint_map": {}
  },
  "input": {},
  "command": {
    "update": {},
    "resume": {},
    "goto": {
      "node": "<string>",
      "input": {}
    }
  },
  "metadata": {},
  "config": {
    "tags": [
      "<string>"
    ],
    "recursion_limit": 123,
    "configurable": {}
  },
  "context": {},
  "webhook": "<string>",
  "interrupt_before": "*",
  "interrupt_after": "*",
  "stream_mode": [
    "values"
  ],
  "stream_subgraphs": false,
  "stream_resumable": false,
  "on_disconnect": "cancel",
  "feedback_keys": [
    "<string>"
  ],
  "multitask_strategy": "enqueue",
  "if_not_exists": "reject",
  "after_seconds": 123,
  "checkpoint_during": false,
  "durability": "async"
}'
"<string>"

Path Parameters

thread_id
string<uuid>
required

The ID of the thread.

Body

application/json

Payload for creating a run.

Response

200
text/event-stream

Success

The server will send a stream of events in SSE format.

Example event:

id: 1

event: message

data: {}