Errors and limits
Reading an error
The HTTP status says what kind of problem it is. The code in the body says which one, and does not change between versions. message is for people and may be reworded.
json
{
"success": false,
"error": {
"code": "MESSAGE_NOT_CANCELLABLE",
"message": "Only a scheduled or queued message can be cancelled. Current status: SENT",
"details": []
},
"timestamp": "2026-12-01T08:30:00Z"
}Branch on code, not on message.
Codes your application can meet
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 400 | VALIDATION_ERROR | A field is missing or malformed | Fix the request. details lists the fields. |
| 400 | MESSAGE_TOO_LONG | The message needs too many segments | Shorten it |
| 400 | BULK_TOO_LARGE | Too many messages in one bulk request | Split it |
| 401 | UNAUTHORIZED | The key is missing, wrong, revoked or expired | Check the key |
| 403 | FORBIDDEN | The key lacks the permission for this call | Use a key with the right permission |
| 404 | MESSAGE_NOT_FOUND | No such message in your team | Check the identifier |
| 409 | IDEMPOTENCY_KEY_CONFLICT | The idempotency key was used with a different message | Use a new key for a new message |
| 409 | MESSAGE_NOT_CANCELLABLE | The message is past the point of cancelling | Nothing; it is being sent or was sent |
| 409 | MESSAGE_NOT_RETRYABLE | Only failed, undelivered and unknown messages can be retried | Nothing |
| 429 | RATE_LIMITED | Too many requests | Wait the seconds given in the Retry-After header |
| 429 | QUOTA_EXCEEDED | Your team's daily message limit is reached | Wait for the next day (UTC), or raise the limit on the server |
| 500 | INTERNAL_ERROR | Something went wrong on the server | Try again later; with an idempotency key this is safe |
Which requests are safe to repeat
GETrequests: always.POST /sms/sendwith anIdempotency-Key: always. See Send it once.POST /sms/sendwithout one, andPOST /sms/bulk: not after a timeout. The server may have accepted the first request.
After a 429 or a 5xx, wait before trying again, and wait longer each time.
Limits
These are the defaults. Whoever runs your server can change them.
| Limit | Default |
|---|---|
| Requests per API key | 300 per minute |
| Message length | 10 segments |
| Messages in one bulk request | 500 |
| Messages per team per day | No limit |
| Sign-in and pairing attempts per address | 30 per minute |
How fast messages leave
The API accepts messages much faster than phones can send them. A phone sends one message at a time, and Android limits how many SMS an app may send in a period. Messages wait in the queue, highest priority first.
To send more per hour, pair more phones.
