HTTP Documentation
IMPORTANT: This documentation refers to our Legacy API, which is unavailable for new users and will be deprecated for existing users soon. Please check out our new API here
EZ Texting provides REST & HTTP Text Messaging APIs.
API calls can be made from nearly all popular programming languages. Through our API you can access many different features of the EZ Texting platform. Browse them below and check out the list of available APIs and their parameters. FYI: You must first open an EZ Texting account to use our APIs.
Looking for information about receiving text messages?
View the documentation for our two incoming message APIs.
Please note: While we will continue to support our HTTP API, this is a legacy product. Active development has moved to our REST API. As such, we encourage you to use our REST API. The REST API already offers new bulk sending and message scheduling options. No new features will be added to the HTTP API.
You are reading the HTTP API Docs. Click here for the REST API Docs.
Sending SMS Messages
Description |
Sends individual SMS text messages via an EZ Texting short code or SMTP gateway. Accepts GET or POST requests. |
|
URL |
https://app.eztexting.com/api/sending/ |
Example call: https://app.eztexting.com/api/sending/?user=USERNAME&pass=PASSWORD&phonenumber=PHONENUMBER&subject=SUBJECT&message=MESSAGE&express=1 |
Parameters | |
User | (Required) Your EZ Texting username |
Pass | (Required) Your EZ Texting password |
PhoneNumber | (Required) 10 digit phone number to send message to |
Subject | (Optional) The subject of your message up to 13 characters |
Message | (Required) The body of your message |
Express | (Optional) Use Express delivery method when sending message value = 1. To send Standard Delivery set the value = 0. If you leave this parameter out your message will default to Express Delivery. |
|
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.) |
| |
| |
| |
| |
|
Check Credit Balance
Description |
Checks credit balances on your account. Accepts GET or POST requests. |
URL |
https://app.eztexting.com/api/credits/check/ |
Parameters | |
User | (Required) Your EZ Texting username |
Pass | (Required) Your EZ Texting password |
Return Values | |
Any non-negative number | The amount of plan and additional credits available |
-1 | Invalid user and/or password or API is not allowed for your account |
-10 | Unknown error (please contact our support dept.) |
Check Keyword Availability
Description |
Checks if a Keyword is available to rent on one of our common-use short codes. Accepts GET or POST requests. |
URL |
https://app.eztexting.com/api/keyword/check/ |
Parameters | |
User | (Required) Your EZ Texting username |
Pass | (Required) Your EZ Texting password |
Keyword | (Required) The keyword to be checked |
Return Values | |
1 | The keyword is available |
0 | The keyword is not available |
-1 | Invalid user and/or password or API is not allowed for your account |
-10 | Unknown error (please contact our support dept.) |
Buy More Credits
Description |
Buys more credits for your account. Accepts POST requests only. |
URL |
https://app.eztexting.com/api/credits/buy/ |
Parameters | |
User | (Required) Your EZ Texting Username |
Pass | (Required) Your EZ Texting Password |
FirstName | (Required) The first name on the card |
LastName | (Required) The last name on the card |
Address | (Required) The billing street address |
City | (Required) The billing address city |
State | (Required) The billing address state/province |
Zip | (Required) The billing address zip code |
Country | (Required) The billing address country |
Type | (Required) Card type: 'MC' for MasterCard, 'Visa' for Visa, 'AX' for American Express, 'DS' for Discover |
CCNumber | (Required) Card number |
Expm | (Required) Card's expiration month, two digits |
Expy | (Required) Card's expiration year, two digits |
CCCode | (Required) Card Security Code (CV2) |
Credits | (Required) Amount of credits to buy |
Return Values | |
1 | The request succeeded |
0 | The request was declined |
-1 | Invalid user and/or password or API is not allowed for your account |
-2 | Request declined because it is less than $5.00 minimum purchase. |
-10 | Unknown error (please contact our support dept.) |
Rent a Keyword
Description |
Rents a Keyword on one of our common-use short codes. Accepts POST requests only. |
URL |
https://app.eztexting.com/api/keyword/rent/ |
Parameters | |
User | (Required) Your EZ Texting username |
Pass | (Required) Your EZ Texting password |
FirstName | (Required) The first name on the card |
LastName | (Required) The last name on the card |
Address | (Required) The billing street address |
City | (Required) The billing address city |
State | (Required) The billing address state/province |
Zip | (Required) The billing address zip code |
Country | (Required) The billing address country |
Type | (Required) Card type: 'MC' for MasterCard, 'Visa' for Visa, 'AX' for American Express, 'DS' for Discover |
CCNumber | (Required) Card number |
Expm | (Required) Card's expiration month, two digits |
Expy | (Required) Card's expiration year, two digits |
CCCode | (Required) Card Security Code (CV2) |
Keyword | (Required) The keyword to rent |
Return Values | |
2 | The request succeeded |
1 | The keyword is not available |
0 | The request was declined |
-1 | Invalid user and/or password or API is not allowed for your account |
-10 | Unknown error (please contact our support dept.) |
|
Configure a Keyword
Description |
Configures/Updates settings for a Keyword belonging to your account. Accepts GET or POST requests. |
URL |
https://app.eztexting.com/api/keyword/setup/ |
Parameters | |
User | (Required) Your EZ Texting username |
Pass | (Required) Your EZ Texting password |
Keyword | (Required) Keyword that you want to configure |
Group | (Optional) Customers who text in your keyword will be added to the group you provide |
Autoreply | (Optional) Customers that text in your keyword to your assigned common-use short code will receive this message. The autoreply is limited to 160 characters (136 characters in Canada). Each confirmation return text that is sent back requires 2 credits. If you do not update this field, we will send out our default autoreply, 'Thank you for joining our list.' |
(Optional) We will forward incoming messages to the email address for free | |
URL | (Optional) We will call this URL when keyword is received |
Return Values | |
1 | Updated successfully |
-1 | Invalid user and/or password or API is not allowed for your account |
-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) |
Voice Broadcast
Description |
Sends voice broadcast messages to an array of phone numbers. Accepts GET or POST requests. |
|
URL |
https://app.eztexting.com/api/voicemessages/ |
Parameters | |
User | (Required) Your EZ Texting username |
Pass | (Required) Your EZ Texting password |
Phonenumbers | (Required) Array of 10 digit phone numbers to call to. |
Soundfile | (Optional) Name of the .wav file in your EZ Texting account |
Soundsource | (Optional) Address to the .wav file on your server |
Callerid | (Required) 10 digit phone number |
| |
|
Return Values | |
1 | Campaign Sent |
-1 | Invalid user and/or password or API is not allowed for your account |
-2 | Credit limit reached |
-3 | Invalid callerid |
-4 | Invalid array of phone numbers |
-5 | Invalid soundfile (make sure you provided the correct file name with the extension) |
-6 | Invalid soundsource (make sure you provided the correct path to the file with the extension) |
-7 | Invalid request (make sure you use the correct names of variables) |
-10 | Unknown error (please contact our support dept) |
Carrier Lookup
Description |
The Carrier Lookup API tool has now been deprecated due to low usage and the need to maintain platform stability and security. |
|