Run an Agent
Run an agent on a task or message.
A new session can be created by omitting the session query parameter, or an existing
session can be continued by specifying the session ID in the session query parameter.
The request body includes the message, optional system prompt, mode, MCP server configuration,
optional rules and whether the response should be streamed.
The response is a streaming response and returns a sequence of events representing the
agent’s thoughts and responses.
post/
Query parameters
sessionstring
The session ID to continue the agent session conversation. If not provided, a new session will be created.
Request body
Response
Streamed agent response. Clients should consume the response as a text/event‑stream.