HTTP API

I. Send SMS

I.1 Simple Way to Send an SMS

http://send.smsmasking.co.id/~proxy/send.php?username=xxxxx&mobile=xxxx&message=xxxx&password=xxx

 

Example:

http://send.smsmasking.co.id/~proxy/send.php?username=xxxxx&mobile=xxxx&message=xxxx&password=xxx

 

Parameter Description

Username Username provided to user to connect to our service

Mobile Destination mobile number , Indonesian (08xxxxx) or international (628xxxx) format.

Message Text Message (encoded, max 5000 chars)

 

I.2.  Send an SMS With Port 8080

Purpose : The simple way tosend an SMS 

Syntax:

http://send.smsmasking.co.id:8080/web2sms/api/Send.aspx?username=xxx&mobile=xxx&message=xxx&password=xxxx

 

Example:

http://send.smsmasking.co.id:8080/web2sms/api/send.aspx?username=sms&mobile=08126531971&message=Hallo+World&password=123456

 

Parameter Description

Username Username provided to user to connect to our service

Mobile Destination mobile number

Message Text Message (encoded, max 5000 chars)

Password Your Login Password

 

I.3.  Send an SMS With Port 8080, MD5 and TRX ID

Purpose : To send sms by sending encrypted passwords and ClienttrxID to avoid duplicate sms

Syntax:

http://send.smsmasking.co.id:8080/web2sms/api/sendSMS.aspx?username=xxx&mobile=xxx&message=xxx&auth=xxxx&trxid=xxxx&type=x

 

Example:

http://send.smsmasking.co.id:8080/web2sms/api/sendSMS.aspx?username=sms&mobile=08126531971&message=Hallo+world&auth=cd377b32c5745f89a53f6970d2f49969&trxid=sms0000000001&type=0

 

Parameter Description

Username Username provided to user to connect to our service

Mobile Destination mobile number , Indonesian (08xxxxx) or international (628xxxx) format.

Message Text Message (encoded, max 5000 chars)

Auth Authentication with formula :

MD5(username+password+Mobile)

trxID Client TrxID, used to avoid duplicate sms (Optional, max 50 char, type string)

type 0 (or missing) ascii text message (normal message)

3 Unicode message (Arabic, Japan, Chinese, etc)

Note :

  1. For the account type of numeric sender id (smsstandard), unicode supported by all operators. Alpha sender account, unicode is not supported by Telkomsel and XL. 
  2. When the type of message is Unicode (3), then the message must be in hexadecimal  format. 

For Example : こんにちは世界

Hexadecimal : 30533093306B3061306F4E16754C




I.4.  Send SMS by Group

Purpose : To Send SMS to a Group

Syntax:

http://send.smsmasking.co.id:8080/web2sms/api/SendSMSGroup.Aspx?group=xx&msg=xx&username=xx&auth=xx

 

Example:

http://send.smsmasking.co.id:8080/web2sms/api/SendSMSGroup.Aspx?group=Marketing&msg=Hello+world&username=sman1&auth=ffb09fcbd7b381d0ff6ae1609111d437

 

Parameter Description

Group Group name (encoded)

Msg Text Message (encoded, max 160 chars)

Username Username provided to user to connect to our service

Auth Authentication with formula :

MD5(username+password)

  1. PHONE BOOK

II.1.Add Phone Book

Purpose : Add new contact  to phone book :

 

Syntax:

http://send.smsmasking.co.id:8080/web2sms/api/phbkAdd.aspx?username=xxx&name=xxx&mobile=xxx&group=xxx&address=xxx&birth=xxx&desc=xxx&auth=xxxx

 

Example :

http://send.smsmasking.co.id:8080/web2sms/api/phbkAdd.aspx?username=sms&name=Rudi &mobile=08123456&group=Office&address=Jl. Bali&birth=19450817&desc=Direktur Utama&auth=cd377b32c5745f89a53f6970d2f49969

 

Parameter Description

Username Username provided to user to connect to our service

Name Contact Name   

Mobile Contact mobile number

Group Contact Group Member

Address Contact Address

Birth Contact Birthday (YYYYMMDD)

Desc Contact Description

Auth MD5(Mobile+Password)

Note : Address, Birth and Desc are optional



II.2.  Edit  Phone Book

Purpose : Edit existing Contact.

Syntax:

http://send.smsmasking.co.id:8080/web2sms/api/phbkEdit.aspx?id=xxx&username=xxx &name=xxx&mobile=xxx&group=xxx&address=xxx&birth=xxx&desc=xxx&auth=xxxx

 

example :

http://send.smsmasking.co.id:8080/web2sms/api/phbkEdit.aspx?id=372880&username=sms&name=Yuli&mobile=06177123454&group=Bos&address=Jl. Pati 3&birth=17 aug 2010&desc=senang main golf&auth=3097dc123edc537e80b01b4abf1b20ef

 

Parameter Description

Id Contact ID Number

Username Username provided to user to connect to our service

Name Contact Name   

Mobile Contact mobile number

Group Contact Group Member

Address Contact Address

Birth Contact Birthday (dd mmm yyyy)

Desc Contact Description

Auth MD5(id+password)

 

II.3.  Delete Phone Book

Purpose :  Deleteexisting contact

http://send.smsmasking.co.id:8080/web2sms/api/phbkDelete.aspx?id=xxx&username=xxx&auth=xxxx

 

Parameter Description

Id Contact ID Number

Username Username provided to user to connect to our service

Auth MD5(id+password)

 

II.4.  Get Contact List

Purpose : To get contact list

http://send.smsmasking.co.id:8080/web2sms/api/phbkGetList.aspx?username=xxx&page=xx&size=xx &auth=xxxx

 

example :

http://send.smsmasking.co.id:8080/web2sms/api/phbkGetList.aspx?page=6&size=10&username=sms&auth=ffb09fcbd7b381d0ff6ae1609111d437

Parameter Description

Username Username provided to user to connect to our service

page Page Number (default=1)

size number of recordsper page (default=10)

Auth MD5(Username+password)

 

II.5.  Get Contact List by Group

Purpose : To get Contact list by Group Name

http://send.smsmasking.co.id:8080/web2sms/api/phbkGetListbyGroup.aspx?username=xxx&page=xx&size=xx &group=xxx&auth=xxxx

 

Parameter Description

Username Username provided to user to connect to our service

page Page Number (default=1)

size number of records per page (default=10)

group Group Name

Auth MD5(Username+password)



II.6.  Get Complete Data

Purpose : To retrieve contact detail

http://send.smsmasking.co.id:8080/web2sms/api/phbkGetCompleteData.aspx?ID=xx&username=xxx &auth=xxxx

 

example :

http://send.smsmasking.co.id:8080/web2sms/api/phbkGetCompleteData.aspx? id=6928&username=sms&auth=ffb09fcbd7b381d0ff6ae1609111d437

Parameter Description

id Contact ID

Username Username provided to user to connect to our service

Auth MD5(Username+password)

 

II.6.  Find Name

Purpose : To search contact by name

http://send.smsmasking.co.id:8080/web2sms/api/phbkFindName.aspx?name=xx&username=xx&auth=xx

 

example :

http://send.smsmasking.co.id:8080/web2sms/api/ phbkFindName.aspx?name=sar&username=smsoke&auth=ffb09fcbd7b381d0ff6ae1609111d437

Parameter Description

name Name to search

Username Username provided to user to connect to our service

Auth MD5(Username+password)

 

II.7.  Find Phone Number

Purpose : To search contact by Phone Number

http://send.smsmasking.co.id:8080/web2sms/api/phbkFindPhNumber.aspx?no =xx&username=xx&auth=xx

 

example :

http://send.smsmasking.co.id:8080/web2sms/api/ phbkFindPhNumber.aspx?no=0812653&username=smsoke&auth=ffb09fcbd7b381d0ff6ae1609111d437

Parameter Description

name Name to search

Username Username provided to user to connect to our service

Auth MD5(Username+password)

 

III.  Group

III.1.  Add Group

Purpose : Add a new Group Name

Syntax

http://send.smsmasking.co.id:8080/web2sms/api/groupAdd.aspx?group=xx&username=xx&auth=xxx

example :

http://send.smsmasking.co.id:8080/web2sms/api/groupAdd.aspx?group=Calon Client&username=sms&auth=b25a52012483379060de8618dd9d7378

Parameter Description

group Group Name

Username Username provided to user to connect to our service

Auth MD5(group+password)

 

III.2.  Edit Group

Purpose : Edit an existing Group

Syntax

http://send.smsmasking.co.id:8080/web2sms/api/groupEdit.aspx?id=xx&group=xx&username=xx&auth=xxx

example :

http://send.smsmasking.co.id:8080/web2sms/api/groupEdit.aspx?id=849&group=Teman&username=sms&auth=e470afc416e70a44bb4e194685777255

Parameter Description

Id Group ID

group Group Name

Username Username provided to user to connect to our service

Auth MD5(id+password)



III.3.  Delete Group

Purpose : Delete an existing Group

 

Syntax

http://send.smsmasking.co.id:8080/web2sms/api/groupDelete.aspx?id=xx&username=xx&auth=xx

example :

http://send.smsmasking.co.id:8080/web2sms/api/groupDelete.aspx?id=849&username=sms&auth=e470afc416e70a44bb4e194685777255

Parameter Description

Id Group ID

Username Username provided to user to connect to our service

Auth MD5(id+password)




III.4.  Get List of Group

Purpose : Retrieve list of  existing Group

Syntax

http://send.smsmasking.co.id:8080/web2sms/api/groupGetList.aspx?page=xx&size=xx&username=xx&auth=xx

example :

http://send.smsmasking.co.id:8080/web2sms/api/groupGetList.aspx?page=1&size=5&username=sms&auth=ffb09fcbd7b381d0ff6ae1609111d437

Parameter Description

page Page number

size Number of record per page

Username Username provided to user to connect to our service

Auth MD5(username+password)

 

III.5.  Find Group

Purpose : Find a Group

Syntax

http://send.smsmasking.co.id:8080/web2sms/api/groupFind.aspx?group=xx&username=xx&auth=xx

example :

http://send.smsmasking.co.id:8080/web2sms/api/groupFind.aspx?group=pul&username=sms&auth=ffb09fcbd7b381d0ff6ae1609111d437

Parameter Description

group Group Name

Username Username provided to user to connect to our service

Auth MD5(username+password)

  1. User Account

IV.1. Change Password

Purpose : To change password

http://send.smsmasking.co.id:8080/web2sms/api/ChangePassword.aspx?username=xxx&newpasw=xx&auth=xxx

 

Parameter Description

Username Username provided to user to connect to our service

newpass New Password 

Auth MD5(username+oldpassword)



  1. Report

V.1. Query Status

Purpose : To get delivery status

http://send.smsmasking.co.id:8080/web2sms/api/Report.aspx?msgid=xxx

 

Parameter Description

msgid Msg ID

 

V.2.  Delivery Report

For users who require Delivery Report on their URL they need toprovide the URL in the form as below

 

http://:port/dlr.php?msgid=%id&status=%s

 

Here

means the IP or the domain name

means the Port number if given

%id means the msgid. %id will be replaced by the msgid.

 

%s means the status of the message. %s will be replaced by DELIVRD,UNDELIVRD, REJECTED or EXPIRED.

 

DLR URL will be using the get method to call the URL provided

 

  1. Return Code

HTTP Return Code:

Return Code Description

1701 Success

1702 Invalid Username or Password

1703 Internal Server Error

1704 Data not found

1705 Process Failed

1706 Invalid Message

1707 Invalid Number

1708 Insufficient Credit

1709 Group Empty

 

1711 Invalid Group Name

1712 Invalid Group ID

1713 Invalid msgid

 

1721 Invalid Phonebook Name

1722 Invalid Phonebook ID

 

1731 User Name already exist

1732 Sender ID not valid

1733 Internal Error – please contact administrator

1734 Invalid client user name

1735 Invalid Credit Value

 

Notes:  

  1. For searching, only return the first 10 rows
  2. Each field delimited with Char(128), and records delimited with char(129). 



  1. Example with PHP

function getURL($url) {

$curlHandle = curl_init(); // init curl

curl_setopt($curlHandle, CURLOPT_URL, $url); // set the url to fetch

curl_setopt($curlHandle, CURLOPT_HEADER, 0);

curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($curlHandle, CURLOPT_TIMEOUT,30); 

curl_setopt($curlHandle, CURLOPT_POST, 0);

$content = curl_exec($curlHandle); 

 

if(!$content){

return 'Curl error: ' . curl_error($curlHandle);

}

Else{

return $content;

}

 

curl_close($curlHandle);

}

 

 

//Your Data Here

 

$mobile="62812xxxxxx";

$msg="Hallo World!";

 

$user="your user id";

$password="your password";

 

$auth=MD5($user.$password.$ mobile);

$msg=urlencode($msg);

 

$myurl="http://send.smsmasking.co.id:8080/web2sms/api/SendSMS.aspx?username=".$user."&mobile=".$mobile."&message=".$msg."&auth=".$auth;

$grab = getURL($myurl);

echo $grab;

 

?>



I. Send WhatsApp

I.1 Simple Way to Send an WhatsApp

http://send.smsmasking.co.id/~proxy/sendwa.php?username=xxxxx&mobile=xxxx&message=xxxx&password=xxx

 

Example:

http://send.smsmasking.co.id/~proxy/sendwa.php?username=xxxxx&mobile=xxxx&message=xxxx&password=xxx

 

Parameter Description

Username Username provided to user to connect to our service

Mobile Destination mobile number , Indonesian (08xxxxx) or international (628xxxx) format.

Message Text Message (encoded, max 5000 chars)

 

I.2.  Send  With Port 8080

Purpose : The simple way tosend an WhatsApp Message

Syntax:

http://send.smsmasking.co.id:8080/web2SMS/api/SendWA.aspx?username=xxx&mobile=xxx&message=xxx&password=xxxx

 

Example:

http://send.smsmasking.co.id:8080/web2SMSapi/SendWA.aspx?username=sms&mobile=08126531971&message=Hallo+World&password=123456

 

Parameter Description

Username Username provided to user to connect to our service

Mobile Destination mobile number

Message Text Message (encoded, max 5000 chars)

Password Your Login Password

 

I.3.  Send With Port 8080, MD5 and TRX ID

Purpose : To send sms by sending encrypted passwords and ClienttrxID to avoid duplicate sms

Syntax:

http://send.smsmasking.co.id:8080/web2SMS/api/SendWA.aspx?username=xxx&mobile=xxx&message=xxx&auth=xxxx&trxid=xxxx&type=x

 

Example:

http://send.smsmasking.co.id:8080/web2SMS/api/SendWA.aspx?username=sms&mobile=08126531971&message=Hallo+world&auth=cd377b32c5745f89a53f6970d2f49969&trxid=sms0000000001&type=0

 

Parameter Description

Username Username provided to user to connect to our service

Mobile Destination mobile number , Indonesian (08xxxxx) or international (628xxxx) format.

Message Text Message (encoded, max 5000 chars)

Auth Authentication with formula :

MD5(username+password+Mobile)

trxID Client TrxID, used to avoid duplicate sms (Optional, max 50 char, type string)

type 0 (or missing) ascii text message (normal message)

3 Unicode message (Arabic, Japan, Chinese, etc)

Note :

  1. For the account type of numeric sender id (smsstandard), unicode supported by all operators. Alpha sender account, unicode is not supported by Telkomsel and XL. 
  2. When the type of message is Unicode (3), then the message must be in hexadecimal  format. 

For Example : こんにちは世界

Hexadecimal : 30533093306B3061306F4E16754C



HTTP Return Code:

Return Code Description

1701 Success

1751 NotActiveWA

 

 

 

 

 

 

Our Technology Partner

Kami Menggunakan Teknologi Terkini Hingga Menjadikan System kami Aman Dan Handal




WhatsApp-Button