Introduction

Hi there! Thank you for your interest in our products. Here you will see the complete list of our API to send, manage and view your messages.

We have also included some pre-made codes so that you can easily integrate the function to send the POST request to our endpoints. This pre-made codes are available in VB.NET, C# and PHP.

API Tables

Here is the complete list of our APIs. Parameters with * are required. Parameters with ~ are optional. Use scrollbar at the bottom of table to navigate.
More APIs will be posted here soon.

Description Endpoint Method Parameters Sample Inputs Outputs
Send a Message https://www.itexmo.com/php_api/api.php POST "1" = 11 Digit Mobile Number *
"2" = Message *
"3" = ApiCode *
"5" = Priority ~
("NORMAL" or "HIGH").
If parameter is left empty, the value of "NORMAL" will be assinged.
"1" = 09151234567
"2" = Test Message
"3" = MYAPICODE
"5" = HIGH
"1" = Invalid Number.
"2" = Number prefix not supported. Please contact us so we can add.
"3" = Invalid ApiCode.
"4" = Maximum Message per day reached. This will be reset every 12MN.
"5" = Maximum allowed characters for message reached.
"6" = System OFFLINE.
"7" = Expired ApiCode.
"8" = iTexMo Error. Please try again later.
"9" = Invalid Function Parameters.
"10" = Recipient's number is blocked due to FLOODING, message was ignored.
"11" = Recipient's number is blocked temporarily due to HARD sending (after 3 retries of sending and message still failed to send) and the message was ignored. Try again after an hour.
"12" = Invalid request. You can't set message priorities on non corporate apicodes.
"13" = Invalid or Not Registered Custom Sender ID.
"0" = Success! Message is now on queue and will be sent soon.
Check API Service Status and your SMS Server Status https://www.itexmo.com/php_api/serverstatus.php GET "apicode" = Your ApiCode https://itexmo.com/php_api/serverstatus.php?apicode=myapicode "INVALID" = Invalid ApiCode
OR
"[{JSON Format}]" = JSON format of contents
JSON Datas:
APIStatus: "OFFLINE" or "ONLINE"
DedicatedServer: "YES" or "NO"
GatewayNumber: Your Gateway Number
SMSServerStatus: "FAULTY" or "OPERATIONAL"
Check ApiCode Info and Status https://www.itexmo.com/php_api/apicode_info.php GET "apicode" = Your ApiCode https://www.itexmo.com/php_api/apicode_info.php?apicode=myapicode "INVALID APICODE" = Invalid ApiCode
OR
"[{JSON Format}]" = JSON format of contents
Show Pending or Outgoing SMS https://www.itexmo.com/php_api/display_outgoing.php GET "apicode" = Your ApiCode
"sortby" = Sort by? "desc" or "asc"
https://www.itexmo.com/php_api/display_outgoing.php?sortby=desc&apicode=myapicode "INVALID PARAMETERS" = Invalid sortby
"EMPTY" = No Outgoing or Pending SMS
"[{JSON Format}]" = JSON format of contents
Delete All Pending or Outgoing SMS https://www.itexmo.com/php_api/delete_outgoing_all.php GET "apicode" = Your ApiCode https://www.itexmo.com/php_api/delete_outgoing_all.php?apicode=myapicode "ERROR" OR "SUCCESS"
Return All SMS Received (Corporate Premium Apicodes) https://www.itexmo.com/php_api/display_messages.php GET "apicode" = Your ApiCode https://www.itexmo.com/php_api/display_messages.php?apicode=myapicode "NOT_SUPPORTED" = Your Apicode is not a corporate one
"EMPTY" = No SMS received yet
"[{JSON Format}]" = JSON format of contents
Return All SMS Received using Originator as Filter (Corporate Premium Apicodes) https://www.itexmo.com/php_api/display_messages_via_originator.php GET "apicode" = Your ApiCode
"originator" = Originator Number
https://www.itexmo.com/php_api/display_messages_via_originator.php?apicode=myapicode&originator=09151234567 "NOT_SUPPORTED" = Your Apicode is not a corporate one
"EMPTY" = No SMS received yet
"[{JSON Format}]" = JSON format of contents
Delete All SMS Received using Originator as Filter (Corporate Premium Apicodes) https://www.itexmo.com/php_api/delete_message_via_originator.php GET "apicode" = Your ApiCode
"originator" = Originator Number
https://www.itexmo.com/php_api/delete_message_via_originator.php?apicode=myapicode&originator=09151234567 "ERROR" = Try again "SUCCESS" = Opertaion OK "INVALID" = Invalid ApiCode
Delete an SMS Received using SMS ID as filter (Corporate Premium Apicodes) https://www.itexmo.com/php_api/delete_message_via_id.php GET "apicode" = Your ApiCode
"id" = Received SMS ID
https://www.itexmo.com/php_api/delete_message_via_id.php?apicode=myapicode&id=102 "ERROR" = Try again "SUCCESS" = Opertaion OK "INVALID" = Invalid ApiCode
Delete All SMS Received (Corporate Premium Apicodes) https://www.itexmo.com/php_api/delete_messages_all.php GET "apicode" = Your ApiCode https://www.itexmo.com/php_api/delete_messages_all.php?apicode=myapicode "ERROR" = Try again "SUCCESS" = Opertaion OK

Send Message Pre-made Scripts for PHP

Simply call the function name to send the HTTP Post request for the Send Message API. Take NOTE that all pre-made scripts does not include the optional "Priority" parameter. SMS priority parameter made by this scripts will be set to "NORMAL".

Choose EITHER "CURL" or "CURL-LESS" METHOD.
Use CURL Method if you are using SHARED hosting with "allow_url_fopen" set to OFF. Choose CURL-LESS Method for LOCALHOST(XAMPP) and other applications.
NOTE: YOU ONLY NEED TO CHOOSE ONE METHOD. CURL method may work for you and CURL-LESS may not and vice versa.

CURL Method


//##########################################################################
// ITEXMO SEND SMS API - PHP - CURL METHOD
// Visit www.itexmo.com/developers.php for more info about this API
//##########################################################################
function itexmo($number,$message,$apicode){
			$ch = curl_init();
			$itexmo = array('1' => $number, '2' => $message, '3' => $apicode);
			curl_setopt($ch, CURLOPT_URL,"https://www.itexmo.com/php_api/api.php");
			curl_setopt($ch, CURLOPT_POST, 1);
			 curl_setopt($ch, CURLOPT_POSTFIELDS, 
			          http_build_query($itexmo));
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
			return curl_exec ($ch);
			curl_close ($ch);
}
//##########################################################################
											

CURL-LESS Method


//##########################################################################
// ITEXMO SEND SMS API - PHP - CURL-LESS METHOD
// Visit www.itexmo.com/developers.php for more info about this API
//##########################################################################
function itexmo($number,$message,$apicode){
$url = 'https://www.itexmo.com/php_api/api.php';
$itexmo = array('1' => $number, '2' => $message, '3' => $apicode);
$param = array(
    'http' => array(
        'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
        'method'  => 'POST',
        'content' => http_build_query($itexmo),
    ),
);
$context  = stream_context_create($param);
return file_get_contents($url, false, $context);}
//##########################################################################
											

Sample Usage

Send a message to "09151234567" the message "Test Message" using the ApiCode "API_CODE".


$result = itexmo("09151234567","Test Message","API_CODE");
if ($result == ""){
echo "iTexMo: No response from server!!!
Please check the METHOD used (CURL or CURL-LESS). If you are using CURL then try CURL-LESS and vice versa.	
Please CONTACT US for help. ";	
}else if ($result == 0){
echo "Message Sent!";
}
else{	
echo "Error Num ". $result . " was encountered!";
}
											

Send Message Pre-made Scripts for VB.NET

Simply call the function name to send the HTTP Post request for the Send Message API. Take NOTE that all pre-made scripts does not include the optional "Priority" parameter. SMS priority parameter made by this scripts will be set to "NORMAL".


'########################################################################################
'iTexmo API for C --> go to www.itexmo.com/developers.php for API Documentation
'########################################################################################
Function itexmo(ByVal Number As String, ByVal Message As String, ByVal API_CODE As String)
    Using client As New Net.WebClient
            Dim parameter As New Specialized.NameValueCollection
            Dim url As String = "https://www.itexmo.com/php_api/api.php"
            parameter.Add("1", Number)
            parameter.Add("2", Message)
            parameter.Add("3", API_CODE)
            Dim rpb = client.UploadValues(url, "POST", parameter)
            itexmo = (New System.Text.UTF8Encoding).GetString(rpb)
    End Using
End Function
'########################################################################################
'API END     '###########################################################################
'########################################################################################
											

Sample Usage

Send a message to "09151234567" the message "Test Message" using the ApiCode "API_CODE".


Dim result = itexmo("09151234567", "Test Message.", "API_CODE")
If result = 0 Then
    MsgBox("Message Sent!")
Else
    MsgBox("Error num " & result & " was encountered")
End If
											

Send Message Pre-made Scripts for C#

Simply call the function name to send the HTTP Post request for the Send Message API. Take NOTE that all pre-made scripts does not include the optional "Priority" parameter. SMS priority parameter made by this scripts will be set to "NORMAL".


//########################################################################################
//iTexmo API for C# / ASP --> go to www.itexmo.com/developers.php for API Documentation
//########################################################################################
public object itexmo(string Number, string Message, string API_CODE)
{
	object functionReturnValue = null;
	using (System.Net.WebClient client = new System.Net.WebClient()) {
		System.Collections.Specialized.NameValueCollection parameter = new System.Collections.Specialized.NameValueCollection();
		string url = "https://www.itexmo.com/php_api/api.php";
		parameter.Add("1", Number);
		parameter.Add("2", Message);
		parameter.Add("3", API_CODE);
		dynamic rpb = client.UploadValues(url, "POST", parameter);
		functionReturnValue = (new System.Text.UTF8Encoding()).GetString(rpb);
	}
	return functionReturnValue;
}
//########################################################################################
//API END     '###########################################################################
//########################################################################################
			
											

Sample Usage

Send a message to "09151234567" the message "Test Message" using the ApiCode "API_CODE".


    dynamic result = itexmo("09151234567", "Test Message.", "API_CODE");
    if (result == "0")
    {
        MessageBox.Show("Message Sent");
    }
        else
    {
        MessageBox.Show("Error num " + result + " was encountered");
	}
			
											

Get Started Today

To start, you will need an ApiCode that will give you access to our APIs and SMS Portal.

Sample Project Downloads

Here is a list of available sample projects for download.

VB.Net Sample Project (VS2010)
C# Sample Project (VS2010)