Rate Limits & Fair Use
Production rate limits, loop protection for autonomous AI agents, pagination bounds, and error codes.
Reading computed data over the REST API costs 0 action credits. To protect workspaces against runaway agent loops (while (true) bugs), hard sliding-window limits apply at both the connection and workspace level.
Production Safety Limits
| Scope / Resource | Limit | Window |
|---|---|---|
| Per Connection (Read API) | 60 requests | per 60 seconds |
| Per Workspace (Read API) | 300 requests | per 60 seconds |
| Expensive Read Routes | 30 requests | per 60 seconds |
Pairing Initiation (/auth/pairings) | 5 attempts | per 10 minutes per IP |
| Pairing Status Polling | Min 5s interval | 10 min pairing TTL |
Response Size & Pagination Caps
- Default Page Size (
limit):25items - Maximum Page Size (
limit):50items - Max Response Payload Size:
90 KB(92,160 bytes) - Max Control Plane Request Body:
8 KB(8,192 bytes)
Handling 429 Too Many Requests
When a connection exceeds 60 requests / minute, the gateway returns HTTP 429:
{
"error": {
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Retry shortly."
},
"request_id": "38e6cd56280f2a7588538e..."
}Wait at least 5 to 15 seconds with exponential backoff before retrying.
Standard Error Codes
| HTTP Status | Code | Meaning |
|---|---|---|
400 | invalid_request | Missing required header (Content-Type: application/json), invalid scope, or missing query param (e.g. resource on /catalog). |
401 | unauthorized | Expired (15 min), malformed, or revoked zla_ token. Rotate using zlr_ refresh token. |
403 | insufficient_scope | Requested scope was not granted to the underlying key/connection. |
404 | resource_not_found | Endpoint or workspace record does not exist yet (e.g. no completed visibility run). |
409 | pairing_already_pending | Workspace already has an active pending pairing slot. |
429 | rate_limit_exceeded | Connection or IP rate limit reached. Back off and retry. |