Rate limits
How many requests a key and a workspace may send each minute, what a 429 looks like and how to back off.
Rate limits keep one integration from starving the others. They are counted per minute, per key and per workspace. Over a limit the API answers 429 with a Retry-After header, and nothing is changed by that request.
The limits
| Limit | Counted for | Allowed per minute | `detail.code` when exceeded |
|---|---|---|---|
| Per key | Each API key | 60 | rate_limit_key |
| Per workspace | All keys of a workspace together | 300 | rate_limit_workspace |
| Per address | Each client IP address, on requests that carry a well-formed key, before the key is checked | 120 | rate_limit_client |
| Wrong keys | Each client IP address, on requests whose key is unknown or revoked | 30 | rate_limit_auth_fail |
- 60 per key is one request a second on average. Five or more keys sending at full speed share the workspace's 300, so the workspace limit is reached first.
- Every request counts, whatever its outcome: a
404or a422uses budget just like a200. Replaying a request with anIdempotency-Keycounts too. - A request refused with
401or403does not use the key or workspace budget. It uses the address counters above. - Calls made by the local MCP use the key it runs with, so they count against that key's 60.
- Webhook deliveries Dhvanee sends to you are outgoing and never count against any limit.
How the window works
Each counter is a fixed one-minute window, not a sliding one. The window opens at the first request and the count resets to zero when that minute ends. So a burst at the end of one window and the start of the next can briefly exceed 60 in any 60-second span; the limit only guarantees no more than 60 inside one window.
What a 429 looks like
HTTP/1.1 429 Too Many Requests
Retry-After: 33
Content-Type: application/json
{"detail": {"code": "rate_limit_key", "message": "Too many requests"}}Retry-Afteris the number of whole seconds left in the current window, never less than 1. Wait that long and the counter starts again from zero.detail.codetells you which limit you hit:rate_limit_key,rate_limit_workspace,rate_limit_clientorrate_limit_auth_fail.- There are no
X-RateLimit-*headers. Keep your own count if you want to stay under the limit.
If the limiter is unavailable
The limits are enforced by a shared store. If it is briefly down, the API fails closed: it refuses the request instead of letting it through. You get 503 with Retry-After: 1, and a body that says to try again in a moment (detail.code is busy). Retry after one second.
curl -sS -X GET "https://api.stage.dhvanee.com/v1/account" \
-H "Authorization: Bearer dhvanee_live_YOUR_KEY"Staying under the limits
- Honour `Retry-After`. Sleep for the number of seconds it gives, then retry. Do not retry in a tight loop.
- Back off with jitter when
Retry-Afteris missing: wait 1, 2, 4, 8 seconds plus a random fraction. - Page wisely. Ask for
limit=200on contacts and calls instead of many small pages. - Use webhooks, not polling. Subscribe to
call_endedinstead of fetching a call every few seconds. See Webhooks. - Spread jobs across keys only if each stays under 60, and remember the workspace total of 300.
- Queue bulk work. For a large import or a batch of calls, send at a steady pace (for example one request a second) rather than all at once.
/v1 routes only; the dashboard uses separate routes with their own protections. Limits apply per window and are not a quota: they do not carry over and they do not cost anything. For plan allowances such as minutes and storage, see Credits.