Stream a chat response from an agent
POST /api/v1/agents/{role}/chat/stream
POST
/api/v1/agents/{role}/chat/stream
Send a message to an agent and receive a streaming SSE response.
Authorizations
Parameters
Path Parameters
role
required
The agent role to chat with
string
The agent role to chat with
Request Body required
Request body for POST /agents/{role}/chat.
Attributes: message: The user message to send to the agent. attachments: Optional list of file attachments (images/PDFs). thread_id: Existing conversation thread to append this turn to. persist_thread: Whether this route owns thread persistence.
object
attachments
Any of:
Array<object>
A single file attachment in a chat request.
Attributes:
data: Base64-encoded file content.
mime_type: MIME type of the file (e.g. image/png).
filename: Optional original filename for PII/security checks.
null
message
required
string
persist_thread
Set False by internal callers that already persist the turn themselves; leave True for direct UI clients.
boolean
Responses
200
Successful Response
422
Validation Error
object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string