Stream Chat
Chat
Stream Chat
Send a question and receive a streaming SSE response
POST
Stream Chat
Authorizations
API key or JWT token
Body
The question to ask
Existing chat ID to continue a conversation
Optional model to run this chat on, as an id from GET /v2/models (e.g. gemini_3_5_flash). Omit to use the organization's default model. Only valid on new chats — supplying it together with chat_id returns 400, and a model the caller's org/role does not permit returns 403.
Example:
"gemini_3_5_flash"
Tool configuration. Enable specific tools for this chat session.
Connector IDs to query (shorthand for tools.connector_ids)
Response
Server-Sent Events stream
SSE stream with JSON data payloads. Event types:
{"type":"metadata","id":"...","created_at":"...","model":"...","chat_id":"...","is_continuation":bool}{"type":"text","text":"..."}{"type":"asset","asset":{...}}{"type":"done","status":"completed|failed","error":"..."}