Mix LogoMix

Send message via streaming pipeline

Send a message to a session via the streaming pipeline. This endpoint integrates with active SSE connections to broadcast real-time processing events including thinking, content, tool execution, and completion events.

Send a message to a session via the streaming pipeline. This endpoint integrates with active SSE connections to broadcast real-time processing events including thinking, content, tool execution, and completion events.

POST
/stream/{id}/message

Path Parameters

idstring

Session ID to send message to

contentstring

Message content to send for processing

Response Body

from mix_python_sdk import Mixwith Mix() as mix:    res = mix.streaming.send_streaming_message(id="<id>", content="<value>")    # Handle response    print(res)
{
  "sessionId": "string",
  "status": "broadcasted"
}
{
  "error": {
    "code": 0,
    "message": "string",
    "type": "bad_request"
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "type": "bad_request"
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "type": "bad_request"
  }
}