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.

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 the same message to multiple recipients we strongly urge you to consider using our REST API, which allows you to pass a single message and an array of phone numbers to deliver in a single request.

If you decide to use the HTTP API, when sending multiple request we strongly suggest using the following logic in order to avoid this limitation:
1) Open Connection
2) Begin Loop 
3) Make Request 
4) Close Loop 
5) Close Connection

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. 

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 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 difference between Standard & Express delivery:
Express Delivery messages are sent from our short code that is directly connected to the major cell phone carriers. Express delivery speed and reliability is comparable to sending a text message from one cell phone to another. Express messages are limited to 160 characters per text in the US & 130 characters per text in Canada.

Standard messages are sent out through the Internet using SMTP Email to Text technology and are NOT SUPPORTED BY THE CARRIERS. Deliverability rates are for the most part consistent, but can be unpredictable since messages can be trapped in SPAM filters. We provide this method as a legacy service for those customers who need to reach smaller carriers. As the carriers do not support this delivery method, we cannot offer support for Standard messages. Standard messages are limited to 130 characters per text in both the US & Canada

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 EZ or Your Keyword to your assigned short code using that phone.

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.)

Note: After you rent a Keyword, you may want to update the default autoreply, which is 'Thank you for joining our list.'

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.'
Email(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.

Requirements For Voice Broadcast Files: WAV, 16 bit, mono, 8 kHz, less than 30 seconds

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

Note: You can either provide name of the file you saved in your EZ Texting account (Soundfile) or we can get your .wav file from the URL on your server (Soundsource).

Note: The callerid must be a valid 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. 

If you have been using this feature to clean contact lists, it is now possible to confirm the validity of a contact by using our Delivery Reports.