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 APIs.
HTTP API Calls
- 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 | |
Note: Our servers impose a limit on the number of simultaneous connections that you may make from your server to ours per second. To avoid having your IP blocked, please do not attempt to make more than 2 simultaneous HTTP connections per second to our servers. Please also make sure that you close each connection after opening one when making your HTTP request. If you are running a multithreaded application please also be aware of the limit that is imposed. If your application exceeds this limit you may receive a rate limiting error, with the HTTP status code 503 in the header and your request will not be processed. If you believe you are being incorrectly rate limited please contact support. | |
If you are sending to a large number of recipients, we strongly urge you to explore our REST APIs which allow easier mass sending. Instead of looping through a message multiple times, to multiple recipients, our REST sending API allows you to pass us an array of phone numbers to deliver the same message to. |
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 maximum number of 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.) |
Note: Any negative codes represent unsuccessful attempts to check credits amount. |
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.) |
Note: Any negative codes represent unsuccessful attempts to check keyword availability. |
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.) |
Note: Any negative codes represent unsuccessful attempts to buy credits. |
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.) |
Note: Any negative codes represent unsuccessful attempts to rent a keyword. |
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) |
Note: Any negative codes represent unsuccessful attempts to configure a keyword. |
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 |
Note: Any negative codes represent unsuccessful attempts to create a broadcast. |