Troubleshooting SMS

When you send an SMS, the SMS API returns a JSON response that contains an array of message objects, one for each message:

The status field tells you if the message was successfully queued for sending. A status of zero indicates success; a non-zero value means something went wrong.

Note: A status of zero in the API response does not indicate that Vonage delivered your message. See What else could have gone wrong?

SMS API error codes

If the SMS API returns a non-zero status value then use the following table to determine what went wrong:

statusMeaningDescription
0SuccessThe message was successfully accepted for delivery.
1ThrottledYou are sending SMS faster than the account limit (see What is the Throughput Limit for Outbound SMS?).
2Missing ParametersYour request is missing one of the required parameters: from, to, api_key, api_secret or text.
3Invalid ParametersThe value of one or more parameters is invalid.
4Invalid CredentialsYour API key and/or secret are incorrect, invalid or disabled.
5Internal ErrorAn error has occurred in the platform whilst processing this message.
6Invalid MessageThe platform was unable to process this message, for example, an unrecognized number prefix.
7Number BarredThe number you are trying to send messages to is on the list of barred numbers.
8Partner Account BarredYour Vonage account has been suspended. Contact support.
9Partner Quota ViolationYou do not have sufficient credit to send the message. Top-up and retry.
10Too Many Existing BindsThe number of simultaneous connections to the platform exceeds your account allocation.
11Account Not Enabled For HTTPThis account is not provisioned for the SMS API, you should use SMPP instead.
12Message Too LongThe message length exceeds the maximum allowed.
14Invalid SignatureThe signature supplied could not be verified.
15Invalid Sender AddressYou are using a non-authorized sender ID in the from field. This is most commonly in North America, where a Vonage long virtual number or short code is required.
22Invalid Network CodeThe network code supplied was either not recognized, or does not match the country of the destination address.
23Invalid Callback URLThe callback URL supplied was either too long or contained illegal characters.
29Non-Whitelisted DestinationYour Vonage account is still in demo mode. While in demo mode you must add target numbers to your whitelisted destination list. Top-up your account to remove this limitation.
32Signature And API Secret DisallowedA signed request may not also present an api_secret.
33Number De-activatedThe number you are trying to send messages to is de-activated and may not receive them.

What else could have gone wrong?

If the value of status is zero and your message still did not arrive, then something went wrong during the actual delivery process. To know if your message reached the intended recipient, you need a delivery receipt from the carrier.