Skip to main content
POST
/
api
/
agents
/
{agentId}
/
chat

Description

Send a message and receive a streaming response using Server-Sent Events (SSE).

Authentication

Required (API key or JWT token)

Request Body

message
string
required
The message to send
stream
boolean
required
Set to true for streaming
threadId
string
Optional thread ID

Response

Server-Sent Events stream with chunks:
data: {"chunk": "Hello"}
data: {"chunk": "!"}
data: {"chunk": " How"}
data: [DONE]