Skip to main content
POST
Stream an agent reply word by word (SSE)

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

id
string
required

Identifier of the agent to converse with.

Body

application/json
message
string
required

User message to send to the agent.

Minimum string length: 1
conversationId
string

Existing conversation id to append onto; omit to start a new conversation.

history
object[]

Optional prior turns to seed the agent, additive on top of any persisted state.

Response

200 - text/event-stream

Server-Sent Events stream of the agent reply. Emits token events with incremental text, a terminal done event, and an error event on failure.

The response is of type string.