aSMSC API
aSMSC API
aSMSC API
1.1 Parameters
Parameter Name Required Description Example
api_id Yes Your API ID Sent in Email API43404236
{
"api_id": yourapiid,
"api_password": yourapipassword,
"sms_type": T,
"encoding": T,
"sender_id": tstala,
"phonenumber": 919990123312,
"templateid": null,
"textmessage":test message,
"V1": null,
"V2": null,
"V3": null,
"V4": null,
"V5": null
}
3
Response Format for Both GET AND POST
{
"message_id": 4125,
"status": "S",
"remarks": "Message Submitted Successfully"
}
Response Details.
1.3.1 Parameters
Parameter Name Required Description Example
message_id Yes Message ID You Received at The 4134
Time of Submit
{
" message_id ": 32423
}
{
"message_id": 32,
"PhoneNumber": "9713254",
"SMSMessage": "Test Message",
4
"MessageType": "Default",
"MessageLength": 159,
"MessageParts": 1,
"ClientCost": 1,
"DLRStatus": "Delivered",
"SMSID": "9cbd20a1-0cd8-420e-b384-5767b7df7a87",
"ErrorCode": 0,
"ErrorDescription": "000",
"SentDateUTC": "2017-05-05T10:16:39.523",
"Remarks": "OK"
}
5
2.0 Managing Contact Lists through API
Step 3. Click on Add New Contact List Button & Create a new Contact List
Step 4. Enter Contact List Name and Click Create New Contact List
6
Step 5 : Once Created You Will Find Contact List ID in the Grid Below
Example:
http://api.smsala.com/api/AddC ontact?api_id=API3434144906&api_password=passwor
d&contact_list_id=1&contact_name=Test&contact_number=919990206824
URL: http://api.smsala.com/api/AddContact
{
"api_id": yourapiid,
"api_password": yourapipassword,
"contact_list_id": 1,
"contact_name": Test,
"contact_number": 91999020238,
}
7
2.1.5 Response Format for Both GET AND POST
{
"contact_id": 4,
"status": "S",
"remarks": "Contact Created Sucessfully"
}
2.1.6 Response Details
contact_id System generated id of your contact save it for future deletion of this
contact via api.
status S = Contact Created Successfully F
= Failed to create contact
remarks Description of the status
Example:
8
http://api.smsala.com/api/DeleteC ontact?
api_id=API4das62144906&api_password=pas sword&contact_id=4
{
"api_id": yourapiid,
"api_password": yourapipassword,
" contact_id ": 1,
}
{
"contact_id": 0,
"status": "S",
"remarks": "Contact Created Successfully"
}
2.2.5 Response Details
This API helps you to verify user phone number using OTP (One Time Password).
3.1.1 Calling the SMSala Verify API using Get Request Example:
http://api.smsala.com/api/Verify?api_id=API651344002&api_password=password&bran
d=your_brand_name&phonenumber=91340206824&sender_id=TSTALA
9
3.1.2 Calling the SMSala Verify API using POST Request
URL: http://api.smsala.com/api/Verify
Post Request JSON Format
{
"api_id": yourapiid,
"api_password": yourapipassword,
"brand": Your_Brand_Name,
"phonenumber": 91999664445,
"sender_id": TSTALA,
}
Example: http://api.smsala.com/api/VerifyStatus?verfication_id=2&verfication_code=4022
10
Post Request JSON Format
{
"verfication_id": 2,
"verfication_code": 4022,
}
11