Smstools

SMS Gateway API for text messaging

Start right away

Handling errors

This API will return a 4xx http response code on wrong input and sends a human readable error back.

Example failed response:
Status code: 400 Bad Request,

Body:

{
	"error": "error parsing json"
}

OR

{
	"error": "104"
	"errorMsg": "Invalid credentials"
}
Error Explanation
102 No message provided
103 Phone number is required or invalid
104 Invalid Credentials
105 We are currently having issues with our servers. Please try again later
106 Destination number [xxxx] missing or invalid
108 Not enough credits.
109 Sender name cannot be empty
110 You used the sender number, this always has to start with a +.
111 You are using an invalid sender name. This field can be maximum 11 characters or 14 digits long
112 Message Required
113 Order Required
114 Empty Request
118 An sms message cannot be longer than 160 characters. Some special characters, like €, count as 2
121 Date [xxxx] is invalid or in the past.
122 No contacts sent
123 Object didn't have an ID
124 Parameter groupid required
125 Group not found
126 Name is required
128 Group [xxxx] not found
129 Number [xxxx] already exists in group
131 This number is on your opt-out list. This person does not want to receive messages.
200 Access to the gateway API is not allowed because your IP address is not allowed.

SMS API

Smstools With our SMS gateway API you can add text messaging to your platform in minutes. Free trial. SMS API
5 out of 5 based on 1515 user ratings.
SMSGATEWAYAPI API1

REGISTER NOW

Discover our text message marketing platform today!

REGISTER
Great you're here! Cookies? Read our Privacy Policy. I accept
x