Skip to main content
Base path: /agents/:agentId/conversations
Multi-turn conversations with agents. Supports both synchronous request/response and Server-Sent Events (SSE) streaming.

Types


Start a new conversation with an agent

Requirements:
  • Agent must exist and have status active
Status Codes:
Response:

List conversations for an agent

Status Codes:

Get a single conversation by ID

Status Codes:

Send a message in a conversation and receive the agent’s …

Status Codes:
Response:

Get all messages in a conversation

Status Codes:

Stream a message response using Server-Sent Events

Status Codes: Event Types:
Frontend Integration Notes:
  • Use the EventSource API or a library like eventsource-parser for SSE parsing
  • Each data: line contains a JSON object except the final terminator which is the raw string [DONE]
  • The stream ends when you receive data: [DONE]
  • If you receive an error event, display the error message and close the connection
  • Token usage is sent as a separate event after all text chunks

End an active conversation programmatically

Status Codes: