Skip to content
DhvaneeDocs
Dashboard
On this page

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 machine-readable contract is openapi.public.yaml. Download it for clients and codegen. This site has no live Try-it console.

The limits

LimitCounted forAllowed per minute`detail.code` when exceeded
Per keyEach API key60rate_limit_key
Per workspaceAll keys of a workspace together300rate_limit_workspace
Per addressEach client IP address, on requests that carry a well-formed key, before the key is checked120rate_limit_client
Wrong keysEach client IP address, on requests whose key is unknown or revoked30rate_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 404 or a 422 uses budget just like a 200. Replaying a request with an Idempotency-Key counts too.
  • A request refused with 401 or 403 does 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-After is 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.code tells you which limit you hit: rate_limit_key, rate_limit_workspace, rate_limit_client or rate_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-After is missing: wait 1, 2, 4, 8 seconds plus a random fraction.
  • Page wisely. Ask for limit=200 on contacts and calls instead of many small pages.
  • Use webhooks, not polling. Subscribe to call_ended instead 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.
These are the limits of the hosted Dhvanee API. They apply to the public /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.
Rate limits · Dhvanee Docs