HTTP API Documentation
We offer a REST API and a legacy HTTP API. Please make sure
that you are reading the correct documentation for the set of APIs that
you are using to connect to Club Texting's text messaging gateway.
Looking for information about receiving messages?
Read about the Incoming Message API.
HTTP APIs
We offer easy-to-use HTTP APIs for all core Club Texting functions. Send messages, configure Keywords, buy credits and more.
REST APIs
We offer JSON/XML based REST APIs for nearly all core Club Texting functions. Multiple-recipient sending is only available via the REST API.
If you are interested in performing a carrier lookup by phone number, please see our Cellular Carrier Lookup API documentation. Carrier Lookup is available via both the HTTP and REST APIs.
Code Samples are available on the navigation bar to the left for all HTTP APIs in multiple languages.
If you would like to send the same message to multiple recipients we strongly urge you to consider using our REST Sending API as you may pass an array of phone numbers and your message in a single request.
HTTP API Documentation
- Sending SMS Messages Via API
- Incoming Message APIs
- Check Amount of Credits Via API
- Check Keyword Availability Via API
- Buy More Credits Via API
- Rent a Keyword Via API
- Setup a Keyword Via API
- Voice Broadcast Via API
- Carrier Lookup Via API
Sending SMS Messages |
| Sends individual SMS text messages via the short code 25827 (212121 In Canada). Accepts GET or POST requests. |
URL |
| https://app.clubtexting.com/api/sending/ |
| Example call: https://app.clubtexting.com/api/sending/?user=USERNAME&pass=PASSWORD&phonenumber=PHONENUMBER&subject=SUBJECT&message=MESSAGE&express=1 |
Parameters |
|
User |
(Required) Your Club Texting username |
Pass |
(Required) Your Club Texting password |
| PhoneNumber | (Required) 10 digit phone number to send message to |
Subject |
(Required) The subject of your message (leave empty if no subject) Maximum 13 characters! |
Message |
(Required) The body of your message |
| Express | (Optional) Use Express delivery method when sending message value = 1. To send Standard Devliery set the value = 0. If you leave this parameter out your message will default to Express Delivery. What's the difference between Standard & Express delivery? |
Note: Values must be properly URL encoded |
|
|
|
Return Values |
|
1 |
Message sent |
-1 |
Invalid user and/or password or API is not allowed for your account |
-2 |
Credit limit reached |
-5 |
Local opt out (the recipient/number is on your opt-out list.) |
-7 |
Invalid message or subject (exceeds 13 characters and/or contains invalid characters - see a list of valid characters below) |
-104 |
Globally opted out phone number (the phone number has been opted out from all messages sent from our short code) |
-106 |
Incorrectly formatted phone number (number must be 10 digits) |
-10 |
Unknown error (please contact our support dept.) |
Note: Messages sent via Standard delivery cannot exceed 130 characters combined subject and message field, via Express delivery - 160 characters (136 characters in Canada) combined subject and message field. Subjects are always limited to 13 characters |
|
Note: The list of allowed characters for messages and subjects is: a-z, A-Z, 0-9 and these special characters: .,:;!?()~=+-_\/@$#&%'" |
|
Note: The following characters count as two characters when used: \r \n |
|
Note: To opt back in a globally opted out number (return value -104) please text your Keyword to 25827 (212121 In Canada) using that phone. |
|
Return Values |
|
Any non-negative number |
The amount of credits available |
-1 |
Invalid user or password (make sure your account is API allowed) |
-10 |
Unknown Error (please contact our support dept.) |
|
|
Return Values |
|
1 |
The keyword is available |
0 |
The keyword is not available |
-1 |
Invalid user or password (make sure your account is API enabled) |
-2 |
Request declined because it is less than $5.00 minimum purchase. |
-10 |
Unknown Error (please contact our support dept.) |
|
|
Return Values |
|
1 |
The request succeeded |
0 |
The request was declined |
-1 |
Invalid user or password (make sure your account is API allowed) |
-10 |
Unknown Error (please contact our support dept.) |
|
|
Return Values |
|
2 |
The request succeeded |
1 |
The keyword is not available |
0 |
The request was declined |
-1 |
Invalid user or password (make sure your account is API allowed) |
-10 |
Unknown Error (please contact our support dept.) |
|
|
Return Values |
|
1 |
Updated Successfully |
-1 |
Invalid user or password (make sure your account is API allowed) |
-2 |
Invalid Keyword |
-3 |
Invalid Group Name |
-4 |
Invalid Email |
-5 |
Invalid URL |
-7 |
Invalid autoreply message (message is blank or message exceeds maximum number of characters or message contains invalid characters) |
-10 |
Unknown Error (please contact our support dept) |
|
|
Return Values |
|
1 |
Campaign Sent |
-1 |
Invalid user or password (make sure your account is API allowed) |
-2 |
Credit Limit Reached |
-3 |
Invalid Callerid |
-4 |
Invalid array of phone numbers |
-5 |
Invalid Soundfile (make sure you provided the correct file name) |
-6 |
Invalid Soundsource (make sure you provided the correct path to the file) |
-7 |
Invalid POST Request (make sure you use the correct names of variables) |
-10 |
Unknown Error |
|
|
