Base URL
/v1/.
Authentication
Include your API key in theAuthorization header:
Request format
All request bodies use JSON:Response format
Responses are JSON with standard HTTP status codes:| Status | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad request (invalid parameters) |
401 | Unauthorized (missing or invalid API key) |
402 | Insufficient credits |
404 | Resource not found |
429 | Rate limited |
500 | Internal server error |
Rate limits
| Endpoint | Limit |
|---|---|
| Intent submission | 60 requests/minute |
| Chat completions | 60 requests/minute |
| Read endpoints | 120 requests/minute |
429 with a Retry-After header.
Endpoints
The API has two main entry points:- JSON-RPC (
POST /v1/rpc) — the canonical endpoint for intent submission - REST endpoints — resource-specific endpoints for CRUD operations (sessions, messages, memory, etc.)
- OpenAI-compatible (
POST /v1/chat/completions) — drop-in replacement for OpenAI SDK