Skip to main content
POST

Request

Send a message to an agent and receive a streaming response.
string
required
The ID of the agent to chat with
array
required
Array of message objects with role and content
string
Optional conversation ID to continue an existing conversation

Message Object

Roles:
  • user - Messages from the end user
  • assistant - Previous AI responses (for context)

Response

The response is a Server-Sent Events (SSE) stream.

Event Types

Delta Object