Errors and limits
The HTTP code says what happened; the JSON body says what to fix.
| HTTP | Code / message | What to do |
|---|---|---|
200, 201 | — | Success. 201 when a message or send is accepted. |
401 | Unauthenticated. | Wrong or missing key, HTTP API off, IP outside the filter, account blocked. |
402 | insufficient_funds | Not enough funds. Top up the balance. |
404 | Message not found. / No price configured… | No such message on the account, or no price for this network. |
422 | errors.{field} | Invalid data. Details in errors, by field name. |
422 | no_chargeable_recipients | No number can be sent to. |
422 | no_route | No route to the recipient's network. Contact us. |
429 | Too Many Attempts. | Too many requests. Wait Retry-After seconds. |
5xx | — | A fault on our side. Retry with the same Idempotency-Key. |
Validation error
HTTP/1.1 422 Unprocessable Content
{
"message": "'NieMojaNazwa' is not an active sender name on your account for the sms channel.",
"errors": {
"source": ["'NieMojaNazwa' is not an active sender name on your account for the sms channel."]
}
}Error with a code
HTTP/1.1 402 Payment Required
{
"error": "insufficient_funds",
"message": "Insufficient wallet balance to cover this request."
}Rate limits
- By default 1 request per second per account, across all methods. Need more? Write to info@esmsy.pl: we set the limit per account.
- Requests without a working key: 30 per minute per IP address.
- Over the limit you get 429 with a Retry-After header. For a list of numbers use one POST /campaigns instead of many POST /messages.
When to retry
- 429, 5xx and dropped connections: yes, with the same Idempotency-Key.
- 401, 402, 404, 422: no, fix the cause first.