POST /api/chat.
How it works
You describe what you want. The Operator agent figures out the steps, executes them, and responds with results. It has access to every platform operation: creating instances, installing skills, granting secrets, reading logs, and managing automations.Conversations persist
Each conversation has an ID. Pass it back asid to continue. The Operator agent retains full context: which instances it created, what scores it saw, what experiments are running.
What the Operator agent can do
The Operator agent has tools for every platform operation. When you send a message, it decides which tools to call based on your intent.| Category | Operations |
|---|---|
| Instances | Create, delete, restart, read logs, browse files |
| Skills | Write, install, update, test agent skills |
| Secrets | Create, grant, revoke credentials |
| Config | Read and update instance configuration |
| Automations | Create and manage scheduled prompts |
| Fleet | Operate across multiple instances at once |
Streaming vs JSON
By default,/api/chat returns a streaming response (SSE). For programmatic use, set x-response-format: json to get a single JSON object:
Triggering from external events
Webhooks and automations both work by sending messages to the Operator agent. A webhook injects an external payload into a prompt template. An automation sends a prompt on a cron schedule. Both use the same underlying interface.Related
API Reference: Send Message
Full endpoint documentation with playground.
Quickstart
Send your first message in under 5 minutes.
Automations
Schedule messages on a cron.
Webhooks
Trigger messages from external events.