v5

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-15312564.6 KB
Agent Chat & Monitoring

Chat with agent

Send a message to an agent and get a response. Requires credits. With stream: false (default), returns a JSON object. With stream: true, returns an SSE stream of events.

post/v1/agents/{agent_id}/chat

Path parameters

agent_idstring uuid required

The agent's unique identifier

Request body

messagestring required

Message to send to the agent

session_idstring

Omit to start a new session

streamboolean

Set to true for SSE streaming response

Example request

{
  "message": "What positions are you currently monitoring?"
}

Response

Agent response (non-streaming)

contentstring
session_idstring