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.
| Header | Meaning |
|---|---|
| X-RateLimit-Limit | Requests allowed per window (600). |
| X-RateLimit-Remaining | Requests left in the current window. |
| X-RateLimit-Reset | Seconds until the oldest request leaves the window. |
| Retry-After | On 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/batchescall (up to 10,000 numbers) instead of onePOST /v1/messagescall per number. - Let webhooks bring delivery updates to you instead of polling
GET /v1/messagesfor each message. - Read
X-RateLimit-Remainingon 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
{
"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"
}
}