API Docs

SendSMS API Call

Where is my API Key?
You can find your API key by going to the “Settings” section and clicking on the “API Credentials” tab on the left.

Sending SMS via API Calls
The sendSMS API call is used to send SMS messages.

Call URL: http://app2.textahq.com/gateway/api/sendSMS.php

Parameters for this call
Each API call requires you to pass certain parameters (either GET or POST) in order for Texta to return correct responses. Here’s a list of those parameters relevant to the sendSMS API call.

Parameter Type Function param_value
api_key Alphanumeric API key required to make a call axhh3233289ydsjkbd987
to Integer Mobile number required to make a call, must be in international format  6421123456
msg Alphanumeric SMS message required to make a call hello
user_data Alphanumeric Optional additional information additional information
Response Generated:




Response Code

Code Description
200 Ok/Acknowledged
201 Received By Network
202 Delivered
203 Not Delivered
400 Invalid Apikey
702 Not enough credits
711 Invalid Number
712 Duplicated Message