HomeAPI & DevREST API

iSMS REST API Reference

Send SMS via the iSMS REST API endpoint. Same parameters and response codes as the HTTPS SMS API — compatible with any programming language or platform.

Full SMS API Docs → Get Free API Access
ℹ️
The iSMS REST API uses the same parameters and response format as the HTTPS SMS API. For complete documentation including code examples, error codes, and delivery callback setup, see the full SMS API documentation →
Endpoint

REST API Endpoint

Initiate an HTTP GET or POST request to the REST endpoint below. All parameters are identical to the HTTPS SMS API.

GETPOSThttps://www.isms.com.my/RESTAPI.php

Request Parameters

ParameterTypeRequiredDescriptionExample
unStringRequirediSMS account usernamemyusername
pwdStringRequirediSMS account passwordmypassword
dstnoStringRequiredDestination number in international format (e.g. 601X-XXXXXXX). Separate multiple numbers with semicolons.601X-XXXXXXX
msgStringRequiredText of the message to be sent. Must be URL-encoded for GET requests.Hello%20World
typeIntegerRequired1 = ASCII (English, BM)  ·  2 = Unicode (Chinese, Japanese)1
agreedtermStringRequiredMust be set to YES to accept iSMS User AgreementYES
sendidStringOptionalSender ID — alphanumeric, max 11 characters. Malaysia prefix does not support Sender ID.MyBrand
Code Example

PHP cURL Example

PHP · cURL POST
$params = [
    "un"         => "myusername",
    "pwd"        => "mypassword",
    "dstno"      => "601X-XXXXXXX",
    "msg"        => "Hello from iSMS REST API",
    "type"       => "1",
    "agreedterm" => "YES"
];

$ch = curl_init("https://www.isms.com.my/RESTAPI.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST,            true);
curl_setopt($ch, CURLOPT_POSTFIELDS,     http_build_query($params));
$result = curl_exec($ch);
curl_close($ch);

// Success: "2000 = SUCCESS:1143007207"
echo $result;
Server Response

Response Codes

Upon message submission, iSMS returns a response code for each request.

CodeDescriptionDetails
2000 = SUCCESS:trx_idMessage pushed to Telco SMSCtrx_id is the unique SMS Transaction ID. Note: confirms submission to Telco SMSC only — not handset delivery.
-1000Unknown errorContact administrator
-1001Authentication failedIncorrect username or password
-1002Account suspended / expiredContact administrator
-1003IP not allowedYour server IP is not whitelisted — contact support
-1004Insufficient creditsReload your credits at buy_reload.php
-1005Invalid SMS typeMust be 1 or 2
-1006Invalid body lengthMessage exceeds max 700 characters
-1008Missing parameterOne or more required parameters absent
-1009Invalid destination numberNot a valid international format
-1013Invalid term agreementAdd agreedterm=YES to your request

Need More Developer Resources?

See the full SMS API documentation for delivery callbacks, bulk JSON sending, multiple endpoints, and language-specific code examples.

Full SMS API Docs → Contact Dev Team

📞 1800 87 7061  ·  +603 2780 3880  ·  [email protected]

📱 SMS Coverage — All Countries Worldwide

A B C D E F G H I J K L M N O P Q R S T U V Y Z