Skip to content

Errors and limits

The HTTP code says what happened; the JSON body says what to fix.

HTTPCode / messageWhat to do
200, 201—Success. 201 when a message or send is accepted.
401Unauthenticated.Wrong or missing key, HTTP API off, IP outside the filter, account blocked.
402insufficient_fundsNot enough funds. Top up the balance.
404Message not found. / No price configured…No such message on the account, or no price for this network.
422errors.{field}Invalid data. Details in errors, by field name.
422no_chargeable_recipientsNo number can be sent to.
422no_routeNo route to the recipient's network. Contact us.
429Too 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

When to retry