{"id":1927,"date":"2023-06-08T19:12:22","date_gmt":"2023-06-08T16:12:22","guid":{"rendered":"https:\/\/docs.unibell.tech\/?page_id=1927"},"modified":"2026-01-12T09:38:27","modified_gmt":"2026-01-12T06:38:27","slug":"sms-http-api","status":"publish","type":"page","link":"https:\/\/docs.unibell.tech\/?page_id=1927","title":{"rendered":"SMS API"},"content":{"rendered":"\n<h2 id=\"sms-sending\" class=\"anchor\">Sending an SMS message<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Request<\/strong><\/h2>\n\n\n\n<p>POST\/GET https:\/\/api.unibell.tech\/sms_new?X-Authorization=AccessKey<\/p>\n\n\n\n<p>d8ac9959r12b43545XXXXX&amp;destAddr=7917XXXXXXX&amp;sourceAddr=XXXXX&amp;short Message=Hi, how are you?<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Parameter<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>destAddr<\/td><td>string<\/td><td>The phone number to which the SMS<br>message is sent, in e.164 format, for the Russian Federation<br>7XXXXXXXXXX<\/td><\/tr><tr><td>sourceAddr<\/td><td>string<\/td><td>Sender&#8217;s name<\/td><\/tr><tr><td>shortMessage<\/td><td>string<\/td><td>Message text<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Response<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\u201creference\u201d: \u201c5b922bba6be053cd6a2ecebb1a31438a\u201d,\n\u201cstatus\u201d: \u201cok\u201d,\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Parameter<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>status<\/td><td>string<\/td><td>Request status, see above<\/td><\/tr><tr><td>reference<\/td><td>string<\/td><td>Unique message ID<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>To get the results of the request execution, a callback<\/p>\n\n\n\n<p>over the HTTP\/HTTPS protocol can be configured using the POST method. The parameters are passed Content-Type: application\/x-www-form-urlencoded.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Parameter<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>reference<\/td><td>string<\/td><td>Unique message ID<\/td><\/tr><tr><td>sourceAddr<\/td><td>string<\/td><td>Sender&#8217;s name<\/td><\/tr><tr><td>destAddr<\/td><td>string<\/td><td>The phone number to which the SMS<br>message is sent, in e.164 format, for the Russian Federation<br>7XXXXXXXXXX<\/td><\/tr><tr><td>status<\/td><td>string<\/td><td>SMS Message Status<br>DELIVERED \u2014 delivered<br>UNDELIVERABLE \u2014 not delivered (clarification in<br>networkErrorCode)<br>REJECTED \u2014 rejected with an error(clarification in<br>networkErrorCode)<\/td><\/tr><tr><td>networkErrCode<\/td><td>string<\/td><td>SS7 errors, see below<\/td><\/tr><tr><td>imsi<\/td><td>string<\/td><td>Subscriber&#8217;s IMSI<\/td><\/tr><tr><td>vlr<\/td><td>string<\/td><td>Subscriber&#8217;s VLR<\/td><\/tr><tr><td>hlr<\/td><td>string<\/td><td>Subscriber&#8217;s HLR<\/td><\/tr><tr><td>createdDateTime<\/td><td>string<\/td><td>Date\\time of creation<\/td><\/tr><tr><td>statusDateTime<\/td><td>string<\/td><td>Date\\time of status receipt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"error-code\" class=\"anchor\">Error codes in the status<\/h2>\n\n\n\n<p>Possible error codes in the status of SMS messages or HLR requests (values of networkErrCode), all unspecified codes are considered vendor specific and are not processed separately:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Code<\/th><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>0<\/td><td>No error<\/td><td>The subscriber exists and is available.<\/td><\/tr><tr><td>1<\/td><td>The subscriber does not<br>exist<\/td><td>The specified phone number does not exist.<\/td><\/tr><tr><td>6<\/td><td>The subscriber is offline<\/td><td>The subscriber&#8217;s phone is disconnected or is out<br>of range of the network.<\/td><\/tr><tr><td>11<\/td><td>No SMS service<\/td><td>Means that the subscriber cannot receive<br>the SMS message. For example, the service is not connected,<br>or the subscriber is roaming, where<br>message reception is not activated, or<br>the subscriber&#8217;s operator does not have an SMS exchange with the current<br>roaming operator. It can also be<br>a landline number without receiving messages.<\/td><\/tr><tr><td>12<\/td><td>Error in the subscriber&#8217;s phone<\/td><td>The message cannot be delivered to the subscriber due to an<br>error in the telephone or SIM card.<\/td><\/tr><tr><td>13<\/td><td>The subscriber is blocked<\/td><td>Occurs, for example, if the subscriber&#8217;s account<br>has a zero or negative balance, and he is<br>roaming, or blocked by the operator for<br>prolonged non-payment or voluntarily<br>by the subscriber himself. Also, this error may<br>return if the SIM card is damaged or<br>the PIN and PUK codes of the SIM card are entered incorrectly.<\/td><\/tr><tr><td>21<\/td><td>No service support<\/td><td>The subscriber&#8217;s device does not support working with<br>this service (service).<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Sending an SMS message Request POST\/GET https:\/\/api.unibell.tech\/sms_new?X-Authorization=AccessKey d8ac9959r12b43545XXXXX&amp;destAddr=7917XXXXXXX&amp;sourceAddr=XXXXX&amp;short Message=Hi, how are you? Parameter Type Description destAddr string The phone number to which the SMSmessage is sent, in e.164 format, for the Russian Federation7XXXXXXXXXX sourceAddr string Sender&#8217;s name shortMessage string Message text Response Parameter Type Description status string Request status, see above reference string Unique message <a href=\"https:\/\/docs.unibell.tech\/?page_id=1927\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  SMS API<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":9,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"tpl\/http-content.php","meta":{"footnotes":""},"class_list":["post-1927","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/1927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1927"}],"version-history":[{"count":6,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/1927\/revisions"}],"predecessor-version":[{"id":3490,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/1927\/revisions\/3490"}],"up":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/9"}],"wp:attachment":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}