API Reference Overview
The Zonrad REST API provides programmatic access to agents, runs, traces, memory, and workspace connections.
Base URLs
| Environment | Base URL |
|---|---|
| Production | https://api.zonrad.com/platform/v1 |
| Sandbox / Staging | https://sandbox-api.zonrad.com/platform/v1 |
Standard Request Headers
Every API request must include:
Authorization: Bearer zon_live_YOUR_API_KEYContent-Type: application/jsonAccept: application/jsonFor streaming endpoints (e.g., /chat), pass Accept: text/event-stream.
Rate Limiting
Zonrad enforces token bucket rate limiting on a per-workspace basis:
| Endpoint Group | Rate Limit | Burst Allowance |
|---|---|---|
Chat & Runs (/chat, /runs) |
60 requests / min | 15 concurrent |
Agent CRUD (/agents) |
120 requests / min | 30 concurrent |
Memory API (/memory) |
300 requests / min | 60 concurrent |
| General Read Endpoints | 600 requests / min | 100 concurrent |
When a rate limit is exceeded, the server returns HTTP 429 Too Many Requests with a Retry-After: <seconds> header.
Error Response Format
All error responses return a standardized JSON schema:
{ "error": { "code": "insufficient_credits", "message": "Your workspace has 42 credits remaining. This run requires an estimated 50 credits.", "doc_url": "https://docs.zonrad.ai/credits/credit-system" }}