Reference

Rate limits

Each API key can make 600 requests in any 60-second window. The pricing endpoints are public and not counted against a key.

HeaderMeaning
X-RateLimit-LimitRequests allowed per window (600).
X-RateLimit-RemainingRequests left in the current window.
X-RateLimit-ResetSeconds until the oldest request leaves the window.
Retry-AfterOn 429 only: seconds to wait.

Sending large volumes

Batches make the limit generous: 600 batch requests of 10,000 numbers is millions of messages per minute of requests. The queue then hands messages to the network at up to 1,200 per minute per account, in the order they were accepted.

How the window works

The window slides: each request counts for 60 seconds from the moment it was made, so capacity comes back request by request instead of all at once at the top of a minute. X-RateLimit-Reset is the number of seconds until the oldest request in the window leaves it. A request answered with 429 is not counted, so waiting the Retry-After seconds is enough before the next try.

Staying inside the limit

  • Send to many numbers with one POST /v1/batches call (up to 10,000 numbers) instead of one POST /v1/messages call per number.
  • Let webhooks bring delivery updates to you instead of polling GET /v1/messages for each message.
  • Read X-RateLimit-Remaining on every answer and slow down when it gets close to 0.
  • Give separate workers separate API keys: each key has its own counter, and an account can hold up to 10 keys.

When you hit the limit

429 Too Many RequestsJSON
{
  "error": {
    "code": "rate_limited",
    "message": "This key made more than 600 requests in the last minute. Retry after 12 seconds.",
    "doc_url": "https://bulksmsapi.cc/docs/errors#rate_limited"
  }
}