Rate limits
The API uses token-bucket rate limits, per key and per workspace. Limits are in-memory per API instance.
| Limit | Default |
|---|---|
| Per API key | 600 requests/minute (burst 100) |
| Per workspace | 3,000 requests/minute (burst 500) |
The key-management endpoints in Settings are separately limited to 60 requests/minute per user.
Headers
Every API response carries the key's remaining budget:
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 587
When you are limited
A request over the budget receives 429 Too Many Requests with a
Retry-After header (seconds) and the error code RATE_LIMITED:
{ "error": "…", "code": "RATE_LIMITED" }
Respect Retry-After and back off; check X-RateLimit-Remaining before
bursting. If a legitimate integration consistently hits the limit, the
workspace limit can be raised with the server's
KALAAF_PUBLIC_API_RATE_LIMIT_* environment variables (a server restart
applies them).
For a sync loop, prefer webhooks over polling: events arrive when things change, instead of burning budget on empty polls.