HomeSMS APIPostman Guide

How to Test iSMS SMS API Using Postman

A step-by-step guide to sending SMS via the iSMS API using Postman — POST request with x-www-form-urlencoded body.

Before You Start

Make sure you have the following ready:

API Endpoint & Parameters

The iSMS SMS API uses a POST request with x-www-form-urlencoded body. Endpoint:

https://ww3.isms.com.my/isms_send_all_id.php
ParameterDescriptionRequired
unYour iSMS username✅ Yes
pwdYour iSMS password✅ Yes
dstnoRecipient number in international format without + (e.g. 60123456789)✅ Yes
msgYour SMS message text✅ Yes
type1 = ASCII (Normal), 2 = Unicode (Chinese, Arabic, etc.)✅ Yes
sendidSender name — max 11 characters (optional, subject to approval)❌ Optional
agreedtermMust be set to "YES" to confirm acceptance of terms✅ Yes

Step-by-Step: Send SMS via Postman

1

Create a New Request — Set Method to POST

Open Postman. Click "New""HTTP Request". Set the method to POST.

Enter the endpoint URL:

https://ww3.isms.com.my/isms_send_all_id.php
2

Set Body → x-www-form-urlencoded

Click the "Body" tab. Select "x-www-form-urlencoded" (not raw, not form-data). Add each parameter as a key-value pair:

KeyValue (example)
unmyusername
pwdmypassword
dstno60123456789
msgHello World! Your OTP is 123456.
type1
sendidMyCompany
agreedtermYES
3

Click Send and Check the Response

Click "Send". A successful response looks like:

2000 = SUCCESS:1143007207
✅ 2000 = SUCCESS — your SMS was submitted. The number after the colon is the Message ID for delivery tracking.

PHP Code Example (for reference)

<?php $params = [ "un" => "myusername", "pwd" => "mypassword", "dstno" => "60123456789", // International format, no + "msg" => "Hello World! Your OTP is 123456.", "type" => "1", // 1 = ASCII, 2 = Unicode "sendid" => "MyCompany", // Max 11 chars, optional "agreedterm" => "YES" ]; $ch = curl_init("https://ww3.isms.com.my/isms_send_all_id.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); // Result: "2000 = SUCCESS:1143007207" or "-1001" for errors echo $result;

Response & Error Codes

Response CodeDescription
2000SUCCESS:{TRX_ID} — Message accepted and pushed to telco. TRX_ID is the unique transaction identifier for delivery tracking.
-1000Unknown Error — An unspecified error occurred on the server side.
-1001Authentication Failed — Invalid username or password.
-1002Account Suspended / Expired — The account is inactive or has expired.
-1003IP Not Allowed — The originating IP address is not whitelisted for this account.
-1004Insufficient Credits — The account does not have enough SMS credits.
-1005Invalid SMS Type — The type parameter value is not 1 or 2.
-1006Invalid Body Length — Message body exceeds allowed character limit.
-1007Invalid Hex Body — The Unicode hex-encoded message body is malformed.
-1008Missing Parameter — One or more required parameters are absent from the request.
-1009Invalid Destination Number — The dstno value is not a valid international format number.
-1012Invalid Message Type — The method or message type field is unrecognised.
-1013Invalid Term and Agreement — agreedterm is not set to YES.
📋 Note: For the full API parameter list including scheduled sending, personalised SMS (mail merge), and sub-account sending, refer to the SMS API Documentation →
📞 Need Help? Email: [email protected]  |  Toll Free: 1800 87 7061  |  KL: +603 2780 3880

📱 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