Rate limits
Limits are per endpoint, not one account-wide number. Authenticated requests are counted per account.
Current limits
| Endpoint | Limit |
|---|---|
POST /api/v1/sms/send/ | 120 per minute |
POST /api/external/send/ | 120 per minute |
GET /api/v1/sms/received/ | 120 per minute |
GET /api/v1/sms/<id>/ | Not currently limited |
GET /api/v1/account/stats/ | Not currently limited |
The two unlimited read endpoints are still meant to be called sensibly. Use the polling intervals below rather than treating the absence of a limit as an invitation to poll continuously.
When you exceed a limit
http
HTTP/1.1 429 Too Many Requests
Retry-After: 14
{ "detail": "Request was throttled. Expected available in 14 seconds." }Retry-After is authoritative: it is the number of seconds until the request would succeed. Prefer it to a fixed guess.
Recommended behaviour
- On
429, wait at least theRetry-Aftervalue. Don't retry in a tight loop. - For status checks, poll
GET /api/v1/sms/<id>/no faster than every 15 to 20 seconds per message. Status rarely changes faster than that, so polling more often only spends your capacity. - For large batches, 120 per minute is the practical ceiling for an account. Pace the batch to that rate. See Sending to many recipients.
- For syncing received messages, polling
GET /api/v1/sms/received/every 15 to 30 seconds is plenty and leaves room under the limit for several integrations sharing one key.
More on building this properly: Building reliable integrations.