Oops! Facing network problem. Unable to load this page. Refresh

Please Wait...

Hello Guest

logo

Send Personalized SMS Message

Send Personalized SMS Message api document

SMS Gateway
APIs

Send Personalized SMS Message

POST /sms/send-personalized-msg

Request Information

MethodPOST
Request URLhttps://insprl.com/api/sms/send-personalized-msg
AuthenticationRequired How to Generate API keys?
ParameterTypeDescription
AuthorizationStringUse your "CLIENT KEY" for this Parameter
ParameterTypeValidateDescription
client_idStringRequiredUse your "CLIENT ID" for this Parameter
sender_idStringRequired6 Digits "SENDER ID"
msgtypeStringRequiredSubscribed package type "promo" (Promotional), "txn" (Transactional), "txnotp" (Txn OTP)
personalized_fieldJSONRequiredDefine your custom data fields like name, age, city, etc.
personalized_dataJSONRequiredPass the complete data along with mobile numbers in json encoded format (Up to 5000 nos).
temp_idStringRequiredAdd DLT approved template ID
messageStringRequiredAdd DLT approved template message with personalized fields for ex. Dear [~name~],...
schedule_dateDateOptionalFormat: dd-mm-yyyy
schedule_timeTimeConditionalRequired with "schedule_date". Format: HH:MM (24 hours)
unicodeNumericOptionalSet "1" for YES
flashNumericOptionalSet "1" for YES
campaign_nameStringOptionalMaximum 100 characters allowed.
ParameterTypeDescription
codeNumericFind the code information below under "API Codes"
messageString / ArrayAs per the request handler
batchidStringBatch Reference ID
statusString / ArrayMessage Statuses (Delivered / Failed / Submitted)
CodeModeTypeDescription
100successStringOn Success
101failedStringAuthorization Error
102failedArrayParameter Validation Error
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://insprl.com/api/sms/send-personalized-msg");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Authorization: {CLIENT_KEY}'
));
curl_setopt($ch, CURLOPT_POSTFIELDS, 
http_build_query(
array(
   'client_id' => '{CLIENT_ID}',
   'sender_id' => '{6_CHAR_SENDER_ID}',
   'msgtype' => 'txn',
   'temp_id' => '17003589658545966',
   'personalized_field' => '["name","city","reg-id"]',
   'personalized_data' => '{"9591039100":{"name":"Suraj Jain","city":"Bangalore","reg-id":"RD 2393"},"8088948172":{"name":"SPRL Team","city":"Delhi","reg-id":"RD 7899"}}',
   'message' => 'Dear [~name~], Your registration ([~reg-id~]) is successfull at [~city~] branch.',
   'schedule_date' => '03-02-2020',
   'schedule_time' => '13:20',
   'unicode' => 0,
   'flash' => 0,
   'campaign_name' => 'Registration Camp - 0001'
)
)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close ($ch);
{
"code":"100",
"message":"success",
"data":{
   "batchid":"2392392933",
   "msg":"Your message has been sent to 5000 no(s).",
   "credit": 5000,
}
}

HTTP API INTEGRATION

If you'd like to use our REST API into your application, Feel free to contact us.

8088 948 172 or Contact Us

Latest From Blog

Read our latest posts from our blog

image
Bulk URL generators the NEXT BIG thing in Digital Marketing

If you are into marketing, you must have heard of Bulk URL shortening. They are saying Bulk URL shortening is the new ..

03 May, 2022 SRPL Shortener
image
How Best Indian URL Shorteners can help your business grow?

Every profit driven business enterprise is adopting and incorporating URL Shortening as a part of best business ..

24 Apr, 2022 SRPL Shortener
image
Email Marketing Do's and Don'ts

If your company or business isn’t using email promoting, ought to they? The solution is affirmative, as email is ..

01 Mar, 2021 Email Marketing

This website uses cookies in order to offer you the most relevant information. We may place cookies on your computer for functional, marketing and tracking purposes to improve our site and to show personalised content. You can read more about our cookies here: Cookie Policy. Please accept cookies for optimal performance.

Yes, I accept Cookies.