POST /api/chat). Send natural language to the Operator agent. It handles multi-step work: provisioning instances, writing agent skills, running experiments, scoring results, reporting back.
REST. Direct resource management: create instances, store secrets, set up cron schedules, configure webhooks. No conversational layer involved.
Most developers use both. Conversational for anything that requires judgment (“deploy 5 variants and score them against last week’s data”). REST for structured operations where you know exactly what you want (“create an instance called weather-desk”).
Authentication
Every request requires an API key in theAuthorization header.
ck_live_. Each key has full access to your account. Revoke a key immediately if it leaks.
| Detail | Value |
|---|---|
| Base URL | https://operator.io |
| Auth | Bearer ck_live_... |
| Format | JSON |
| Streaming | SSE (default for /api/chat), or set x-response-format: json |
Conversational API
The/api/chat endpoint accepts natural language messages. You describe what you want and the Operator agent figures out the implementation. It has tools for every platform operation and maintains context across a conversation.
chatId back as id in subsequent requests to continue the conversation.
You express intent at a high level and the agent decomposes it into concrete operations. Read more in Operator Agent.
REST Endpoints
For direct resource management, use the REST endpoints. These are standard CRUD operations that don’t go through the conversational layer.Instances
Create, list, update, restart, and delete agent instances. Each instance is an isolated container with its own filesystem, browser, terminal, and LLM access.
Secrets
Store credentials (API keys, tokens, database URLs) and grant them to specific instances. Secrets are encrypted at rest and values are only returned once at creation.
Automations
Schedule prompts that run on a cron. The Operator agent executes the prompt with full tool access each time the schedule fires.
Webhooks
Create trigger URLs that accept external HTTP payloads. The payload gets injected into a prompt template and sent to the Operator agent.
API Keys
Create and revoke API keys programmatically.
Billing
Check plan status, capacity, and usage.
SDKs
- TypeScript
- Python
Common patterns
Build and iterate on an agent. Use the conversational API to describe a problem, deploy variants, score them, and evolve the best. The Operator agent handles the full lifecycle across multiple messages. Integrate into CI/CD. Use webhooks to trigger the Operator agent when a deployment completes, a test suite runs, or new data lands. The agent decides what to do based on the payload. Automate recurring work. Create automations to score agents on a schedule, generate daily reports, or run health checks across your fleet. Manage infrastructure from code. Use the REST endpoints to provision instances, rotate secrets, and adjust configurations as part of a larger system.Related
Interactive API Reference
Try every endpoint with the built-in playground.
Quickstart
Deploy your first agent in under 5 minutes.
Operator Agent
How the conversational interface works.
Instances
What an instance can do.