{"id":4750,"date":"2020-12-09T08:30:36","date_gmt":"2020-12-09T03:00:36","guid":{"rendered":"https:\/\/teleosms.com\/help\/?p=4750"},"modified":"2023-01-19T20:30:43","modified_gmt":"2023-01-19T15:00:43","slug":"http-api","status":"publish","type":"post","link":"https:\/\/teleosms.com\/help\/http-api\/","title":{"rendered":"1) HTTP API"},"content":{"rendered":"\r\n<h3 class=\"wp-block-heading\" style=\"text-align: center;\">Teleo SMS API (HTTP &amp; HTTPS)<\/h3>\r\n<ul>\r\n<li><em><strong>We support Secured (HTTPS) requests. Use https:\/\/ in API for Secured (SSL) requests.<\/strong><\/em><\/li>\r\n<\/ul>\r\n<h3 class=\"timeline-header\">Single SMS<\/h3>\r\n<div class=\"timeline-body\">\r\n<pre>https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx&amp;text=test-message&amp;route=2&amp;peid=##&amp;dlttemplateid=##<\/pre>\r\n<\/div>\r\n<div class=\"timeline-footer\"><b>Response :\u00a0<\/b>{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;},{&#8220;Number&#8221;:&#8221;917405080952&#8243;,&#8221;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;}]}<\/div>\r\n<p>&nbsp;<\/p>\r\n<div class=\"timeline-item\">\r\n<h3 class=\"timeline-header\">Multiple SMS<\/h3>\r\n<div class=\"timeline-body\">\r\n<pre>https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx,999xxxxxxx&amp;text=testmessage&amp;route=2&amp;peid=##&amp;dlttemplateid=##<\/pre>\r\n<\/div>\r\n<div class=\"timeline-footer\"><b>Response :\u00a0<\/b>{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;},{&#8220;Number&#8221;:&#8221;91999xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;}]}<\/div>\r\n<\/div>\r\n<p>&nbsp;<\/p>\r\n<div class=\"timeline-item\">\r\n<h3 class=\"timeline-header\">Schedule SMS<\/h3>\r\n<div class=\"timeline-body\">\r\n<div class=\"timeline-body\">\r\n<pre>https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx&amp;text=testmessage&amp;schedtime=2015\/12\/31 22:35:00 PM&amp;route=2&amp;peid=##&amp;dlttemplateid=##<\/pre>\r\n<\/div>\r\n<\/div>\r\n<div class=\"timeline-footer\"><b>Response :\u00a0<\/b>{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;BqTiw66A2UGLFV3DnwHFLQ&#8221;}]}<\/div>\r\n<\/div>\r\n<p>&nbsp;<\/p>\r\n<div class=\"timeline-item\">\r\n<h3 class=\"timeline-header\">Group SMS<\/h3>\r\n<div class=\"timeline-body\">\r\n<pre>https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx&amp;text=testmessage&amp;groupid=###&amp;route=2&amp;peid=##&amp;dlttemplateid=##<\/pre>\r\n<\/div>\r\n<div class=\"timeline-footer\"><b>Response :\u00a0<\/b>{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;},{&#8220;Number&#8221;:&#8221;91999xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;}]}<\/div>\r\n<\/div>\r\n<p>&nbsp;<\/p>\r\n<div class=\"timeline-item\">\r\n<h3 class=\"timeline-header\">Check Delivery API<\/h3>\r\n<div class=\"timeline-body\">\r\n<pre>https:\/\/sms.teleosms.com\/api\/mt\/GetDelivery?user=demo&amp;password=demo123&amp;jobid=#######<\/pre>\r\n<\/div>\r\n<div class=\"timeline-footer\"><b>Response<\/b>\u00a0{&#8220;ErrorCode&#8221;:&#8221;0&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;MessageId&#8221;:null,&#8221;DeliveryReports&#8221;:[{&#8220;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;,&#8221;DeliveryStatus&#8221;:&#8221;Delivered&#8221;,&#8221;DeliveryDate&#8221;:&#8221;2015-09-28T06:17:00&#8243;},{&#8220;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;,&#8221;DeliveryStatus&#8221;:&#8221;Delivered&#8221;,&#8221;DeliveryDate&#8221;:&#8221;2015-09-28T06:17:00&#8243;}]}<\/div>\r\n<\/div>\r\n<p>&nbsp;<\/p>\r\n<div class=\"timeline-item\">\r\n<h3 class=\"timeline-header\">Check Balance API<\/h3>\r\n<div class=\"timeline-body\">\r\n<pre>https:\/\/sms.teleosms.com\/api\/mt\/GetBalance?User=demo&amp;Password=demo123<\/pre>\r\n<\/div>\r\n<div class=\"timeline-footer\"><b>Response :-\u00a0<\/b>{&#8220;ErrorCode&#8221;:&#8221;0&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;Balance&#8221;:&#8221;Promo:9988|Trans:999&#8243;}<\/div>\r\n<\/div>\r\n<p>&nbsp;<\/p>\r\n<div class=\"timeline-item\">\r\n<h3 class=\"timeline-header\">Parameter Information<\/h3>\r\n<div class=\"timeline-body\">\r\n<table class=\"table table-bordered table-condensed table-hover table-responsive\">\r\n<tbody>\r\n<tr>\r\n<th>Parameter Name<\/th>\r\n<th>Description<\/th>\r\n<\/tr>\r\n<tr>\r\n<td colspan=\"2\"><b>Account Parameters<\/b><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>user<\/td>\r\n<td>Your login username<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>password<\/td>\r\n<td>Your login password<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>APIKey<\/td>\r\n<td>Instead of the username and password you can use the api key for authentication of account<\/td>\r\n<\/tr>\r\n<tr>\r\n<td colspan=\"2\"><b>Message Parameters<\/b><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>senderid<\/td>\r\n<td>Approved sender id(6 characters string only).<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>channel<\/td>\r\n<td>Message channel Transactional(Trans) or Promotional(Promo).<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>route<\/td>\r\n<td>Route ID is 2 for Trans, 1 for Promo.\u00a0<a href=\"https:\/\/sms.teleosms.com\/Web\/MT\/MyRoutes.aspx\">Click Here<\/a>\u00a0for your routeid.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>DCS<\/td>\r\n<td>Data coding value (Default is 0 for normal message, Set 8 for unicode sms)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>flashsms<\/td>\r\n<td>Flash message immediate display (Default is 0 for normal sms, Set 1 for immediate display)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>number<\/td>\r\n<td>Recipient mobile number (pass with comma seprated if need to send on more then one number)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>text<\/td>\r\n<td>Your sms content<\/td>\r\n<\/tr>\r\n<tr>\r\n<td colspan=\"2\"><b>Optional Parameters<\/b><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>schedtime<\/td>\r\n<td>Schedule date and time for scheduling message (DateTime formate will be 2014\/10\/06 20:30:00 PM yyyy\/mm\/dd hh:mm:ss PM)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>groupid<\/td>\r\n<td>group id for numbers<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<table class=\"table table-bordered table-condensed table-hover table-responsive\" style=\"height: 181px;\" width=\"534\">\r\n<tbody>\r\n<tr>\r\n<td colspan=\"2\"><b>DLT Parameters<\/b><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u00a0peid<\/td>\r\n<td>\u00a0DLT Entity PE ID: DLT platform entity id.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u00a0dlttemplateid<\/td>\r\n<td>\u00a0DLT Template ID: DLT platform approved template id.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u00a0telemarketerid<\/td>\r\n<td>\u00a0*Telemarketer ID: DLT platform telemarketer id. (optional)\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u00a0<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u00a0<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>Teleo SMS API (HTTP &amp; HTTPS) We support Secured (HTTPS) requests. Use https:\/\/ in API for Secured (SSL) requests. Single SMS https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx&amp;text=test-message&amp;route=2&amp;peid=##&amp;dlttemplateid=## Response :\u00a0{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;},{&#8220;Number&#8221;:&#8221;917405080952&#8243;,&#8221;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;}]} &nbsp; Multiple SMS https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx,999xxxxxxx&amp;text=testmessage&amp;route=2&amp;peid=##&amp;dlttemplateid=## Response :\u00a0{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;},{&#8220;Number&#8221;:&#8221;91999xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;}]} &nbsp; Schedule SMS https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx&amp;text=testmessage&amp;schedtime=2015\/12\/31 22:35:00 PM&amp;route=2&amp;peid=##&amp;dlttemplateid=## Response :\u00a0{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;BqTiw66A2UGLFV3DnwHFLQ&#8221;}]} &nbsp; Group SMS https:\/\/sms.teleosms.com\/api\/mt\/SendSMS?user=demo&amp;password=demo123&amp;senderid=TELEOS&amp;channel=Trans&amp;DCS=0&amp;flashsms=0&amp;number=989xxxxxxx&amp;text=testmessage&amp;groupid=###&amp;route=2&amp;peid=##&amp;dlttemplateid=## Response :\u00a0{&#8220;ErrorCode&#8221;:&#8221;000&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;JobId&#8221;:&#8221;20047&#8243;,&#8221;MessageData&#8221;:[{&#8220;Number&#8221;:&#8221;91989xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;},{&#8220;Number&#8221;:&#8221;91999xxxxxxx&#8221;,&#8221;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;}]} &nbsp; Check Delivery API https:\/\/sms.teleosms.com\/api\/mt\/GetDelivery?user=demo&amp;password=demo123&amp;jobid=####### Response\u00a0{&#8220;ErrorCode&#8221;:&#8221;0&#8243;,&#8221;ErrorMessage&#8221;:&#8221;Done&#8221;,&#8221;MessageId&#8221;:null,&#8221;DeliveryReports&#8221;:[{&#8220;MessageId&#8221;:&#8221;mvHdpSyS7UOs9hjxixQLvw&#8221;,&#8221;DeliveryStatus&#8221;:&#8221;Delivered&#8221;,&#8221;DeliveryDate&#8221;:&#8221;2015-09-28T06:17:00&#8243;},{&#8220;MessageId&#8221;:&#8221;PfivClgH20iG6G5R3usHwA&#8221;,&#8221;DeliveryStatus&#8221;:&#8221;Delivered&#8221;,&#8221;DeliveryDate&#8221;:&#8221;2015-09-28T06:17:00&#8243;}]} &nbsp; Check Balance API https:\/\/sms.teleosms.com\/api\/mt\/GetBalance?User=demo&amp;Password=demo123 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[77,83,78,81,84],"class_list":["post-4750","post","type-post","status-publish","format-standard","hentry","category-api-documentation","tag-bulk-sms","tag-bulk-sms-api","tag-bulk-sms-service","tag-send-bulk-sms-online","tag-teleo-sms-api"],"_links":{"self":[{"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/posts\/4750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/comments?post=4750"}],"version-history":[{"count":10,"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/posts\/4750\/revisions"}],"predecessor-version":[{"id":5013,"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/posts\/4750\/revisions\/5013"}],"wp:attachment":[{"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/media?parent=4750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/categories?post=4750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teleosms.com\/help\/wp-json\/wp\/v2\/tags?post=4750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}