Skip to main content

Rate limits

A rate limit is a cap on how many requests you can make in a given stretch of time. This API does not enforce any yet — but this page explains why you should still write your code as if it did, and how to avoid creating needless load.

No rate limits are enforced yet

There is no cap on how many requests you can make, no 429 responses in normal use, and no rate-limit information attached to responses. The per-key call-limit settings you can see in the admin center are not applied to this API.

Build like they exist​

Limit how fast you send requests. Hammering GET /users in a tight loop on a large account can knock over your own integration — even though the API itself sets no limits.

Handle 429 now. It is only a few lines of code, and the error is already in the error catalog:

429 → { "error": { "type": "rate_limited", "message": "…" } }

Wait and retry, making the wait longer after each attempt (and adding a little randomness) — a 429 means nothing happened, so retrying is always safe.

Honour the Retry-After header if it is present. When limits do arrive, they will use this standard header, which tells you how long to wait. Code that already respects it needs no change.

Cheaper than polling​

Three common patterns create the most needless load. Here is what to do instead:

Instead ofDo this
Polling for new SMSSubscribe to the AccountSMS webhook
Polling for ended callsSubscribe to AccountEndedCalls
Re-fetching GET /users per requestCache it and refresh every few minutes — it changes when staff join or leave, not on every call.

Recordings are the one honest exception: a recording appears shortly after the call ends, and an empty [] means "not ready yet." It is fine to poll for that one — but start polling a little while after the AccountEndedCalls event, rather than on a fixed schedule.

Timeouts​

Give your requests a generous timeout. A send has to travel through a phone carrier, and listing recordings has to reach storage, so some calls take a moment. A timeout does not mean the request failed — on POST /sms/messages the message may actually have been sent and billed. See what is safe to retry.