Tonedocs

Limits and quotas

Two budgets that fail in different ways, and need different responses.

curl "$TONE_API/v1/limits" -H "Authorization: Bearer $TONE_KEY"
{
  "data": {
    "environment": "live",
    "requests": { "limitPerMinute": 600, "remaining": 594 },
    "concurrency": {
      "agentCalls": { "inUse": 2, "limit": 10, "reservedForInbound": 1 },
      "byoCalls":   { "inUse": 0, "limit": 10 }
    }
  }
}

Requests per minute are budgeted separately for live and test keys, and this answers for whichever key you asked with. Concurrent calls are one pool for both: a test call that is still running counts against the same limit as a live one.

The concurrency limit is set per organization (3 agent calls unless raised); ask us to size it for your traffic before you launch. Calls also need a free line on the number's carrier, so a dial over that is accepted as queued and placed when a line frees up (see Outbound calls).

We can also give your organization a higher limit for one stretch of every day, for example an early-morning batch, with the usual limit the rest of the day. limit always reports the limit in force when you ask. When the higher stretch ends, calls already running carry on, a call dialled inside it still connects when it is answered, and new dials wait until you are back under the usual limit.

Requests per minute

A per-organization token bucket. Every keyed response carries the headers, on successes too — a client that only reads them on a 429 has already been throttled:

RateLimit-Policy: "org";q=600;w=60
RateLimit: "org";r=594;t=41
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 594
X-RateLimit-Reset: 1756029667

Exceeding it is 429 rate_limited with a Retry-After. Slow down and retry.

Dashboard traffic does not spend this budget, so a busy browser tab cannot throttle your integration.

Concurrent calls

Two pools that do not borrow from each other:

Pool
agentCallsCalls running a Tone agent
byoCallsCalls bridged to your own media stack

A direct dial over your quota is accepted as queued and placed as soon as one of your calls ends, oldest first (Outbound calls). Only when 400 of your dials are already waiting is a new one refused with 429 concurrent_call_limit_reached — a different failure from a rate limit, that slowing down does not fix. inUse counts the calls holding a slot, never the ones waiting for one.

A campaign never dials past your quota, whatever its maxConcurrent says. Each tick it dials at most the agent calls your quota has free, counting every call already running for your organization (other campaigns and direct dials included), and the rest of its recipients wait for the next tick. So a maxConcurrent above your quota is not an error. It just never takes effect.

One slot is kept for people ringing your numbers. Inbound and outbound share the agent pool, so when you have a live number an agent answers (and a limit of 2 or more), your own dials and campaigns stop one short of limit: reservedForInbound says how many are kept. A direct dial over that waits for a slot like any other, and a campaign simply dials one fewer at a time. An inbound call may take the last slot, so a running campaign never turns away a customer calling you back. With no inbound number, nothing is kept.

Dashboard test calls and chats

The test call and the chat tester in the dashboard are free, and have limits of their own:

  • A daily allowance per organization, which resets at midnight IST. It is higher once your business verification is complete.
  • A daily allowance per person, counted across every organization you belong to that is not yet verified.
  • A small number at once. Test calls can never take all the lines, so your live calls always have room.

Reaching an allowance returns 429 rate_limited. The dashboard shows when it resets. Finishing verification is the way to raise it.

Handling both

if (res.status === 429) {
  const { error } = await res.json();
  if (error.code === 'rate_limited') {
    await sleep(Number(res.headers.get('retry-after')) * 1000);
    return retry();                 // submitting too fast
  }
  if (error.code === 'concurrent_call_limit_reached') {
    return queueForLater();         // too many calls live — waiting won't help soon
  }
}

Both are 429, and treating them the same means either hammering a full concurrency pool or needlessly stalling on a rate limit. Branch on error.code.

Need more? Both are raised per organization — ask.

Was this page helpful?

On this page