Starts a new turn in a session. If the session doesn’t exist, it’s created automatically.
To continue an existing session, pass the same chat_id from a previous turn.
To start a fresh session, generate a new UUID for chat_id.
After calling this endpoint, connect to the WebSocket at /ws/chat/{session_id}
to receive real-time execution updates.
API key from Raccoon AI
Session ID. Use the same ID to continue an existing session, or generate a new UUID for a fresh session.
Natural language description of what you want the agent to do
Execution mode:
auto: General-purpose mode for any taskplan: Creates a detailed plan before executiondeepsearch: Optimized for web research and data analysisslides: Generates presentation slidescode: Optimized for coding tasksweb: Builds web applications with live previewauto, plan, deepsearch, slides, code, web Files from the upload endpoint
SDK version (optional)
fast, think Task created successfully
Session ID (same as the chat_id you provided). Use for WebSocket connection.
Internal workflow identifier
Initial turn status
queued, running Human-readable status message
Position in queue (0 if starting immediately)
ID of the user's turn message
ID of the agent's response message. Use for abort endpoint.