{"id":3397,"date":"2022-02-17T08:29:03","date_gmt":"2022-02-17T08:29:03","guid":{"rendered":"https:\/\/web.text2reach.com\/sms-sutisanas-api-dokumentacija\/"},"modified":"2023-10-06T14:07:45","modified_gmt":"2023-10-06T14:07:45","slug":"sms-messaging-api-documentation","status":"publish","type":"page","link":"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/","title":{"rendered":"SMS messaging API documentation"},"content":{"rendered":"\n<h2 id=\"h2-title\">1. Send SMS<\/h2>\n\n\n\n<h3 id=\"toc_1_1\">1.1 HTTP interface<\/h3>\n\n\n\n<p>To send a bulk message, SP must make a HTTP GET request to address:&nbsp;<em>https:\/\/api.text2reach.com\/sms\/send<\/em>&nbsp;query string values are specified below in the parameters table.&nbsp;<strong>All parameters should be properly url-encoded.<\/strong>&nbsp;The returned HTML body for the request will be a message ID or an error code.<\/p>\n\n\n\n<p>Example: <a href=\"https:\/\/api.text2reach.com\/sms\/send?api_key=05A256117C15DE668784DC8CF6863AF2&amp;phone=37126378162&amp;from=29180083&amp;message=Hello+world\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/api.text2reach.com\/sms\/send?api_key=XXXXXXXXXXX &amp;phone=37126378162&amp;from=29180083&amp;message=Hello+world<\/a><\/p>\n\n\n\n<h3 id=\"toc_1_1\">1.2 Custom fields<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Name<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>{sms_unsubscribe_link}<\/td><td>Unsubscribe link &#8211; This custom field will include unique link in message for each recipient where recipient can unsubscribe from future SMS. Link will take recipient to landing page where he will be asked to confirm unsubscribe process. If recipient confirms unsubscribe process recipients\u2019 number will be added to client account Blacklist and future SMS sending\u2019s to this numbers will be rejected until number is removed from blacklist. Number in blacklist are added recipient number + sender name which means that recipient unsubscribes only from specific sender name \/ brand messages.<\/td><\/tr><tr><td>{pin:*:6:3600}<\/td><td>PIN \/ Verification code \u2013 this custom field will include unique code in message body which will be sent to recipient. Sent code can be validated over API request. More information about PIN code variables and verification process see section&nbsp;<a href=\"https:\/\/my.text2reach.com\/api\/sms#toc_8\">8. PIN \/ Verification code<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"toc_1_1\">1.3 Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Name<\/td><td>Required<\/td><td>Default value<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>api_key<\/td><td>yes<\/td><td>&#8211;<\/td><td>Your registered Bulk API key<\/td><\/tr><tr><td>from<\/td><td>yes<\/td><td>&#8211;<\/td><td>source address of the message<\/td><\/tr><tr><td>phone<\/td><td>yes<\/td><td>&#8211;<\/td><td>destination address in international form<\/td><\/tr><tr><td>message<\/td><td>yes<\/td><td>&#8211;<\/td><td>plain text message up to 160 (1071) characters, Unicode message up to 70 (469) characters<\/td><\/tr><tr><td>type<\/td><td>no<\/td><td>txt<\/td><td>message type (&#8220;txt&#8221; for text, &#8220;bin&#8221; for binary)<\/td><\/tr><tr><td>unicode<\/td><td>no<\/td><td>true<\/td><td>if set to false, characters not in GSM 7bit alphabet will be converted (\u0101 =&gt; a) or removed<\/td><\/tr><tr><td>timestamp<\/td><td>no<\/td><td>0<\/td><td>Unix timestamp of a time when end user opted in to receive messages. If parameter is not set the current timestamp is used.<\/td><\/tr><tr><td>report_url<\/td><td>no<\/td><td>false<\/td><td>URL for delivery reports<\/td><\/tr><tr><td>expires<\/td><td>no<\/td><td>0<\/td><td>Delivery time in seconds<\/td><\/tr><tr><td>schedule<\/td><td>no<\/td><td>&#8211;<\/td><td>Unix timestamp of a time when the message is scheduled for delivery<\/td><\/tr><tr><td>blacklist<\/td><td>no<\/td><td>false<\/td><td>Checks if the number is in blacklist before sending. Returns error -503 if found<\/td><\/tr><tr><td>shortlink<\/td><td>no<\/td><td>0<\/td><td>Set 1 if you need to curtail web-links in message by Bitly service. Links must begins with &#8220;http:\/\/&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"toc_1_1\">1.4 Description<\/h3>\n\n\n\n<p>This bulk API call will send the text message to the provided phone number. Your account will be checked for the required funds. If the message cannot be sent, the response will be a negative integer representing the error.<\/p>\n\n\n\n<p>The message will be considered as plain if all the characters are present in the GSM 7bit alphabet (see the table below). It is possible to send up to 1071 characters which will be split into seven parts, 153 characters per part. You will be charged for each part accordingly. 7 characters out of 160 are reserved to identify and concatenate multiple parts and applies only to messages having more than one part. If the message contains unicode characters then you can send up to 469 characters, 63 characters per part, max 7 parts. 7 characters out of 63 are reserved to identify and concatenate multiple parts and applies only to messages having more than one part.<\/p>\n\n\n\n<p>The mandatory parameter \u201cfrom\u201d can be a telephone number in international format, a short code or a textual sender name. Maximum length of an international number is 15 digits not including \u201c+\u201d or \u201c00\u201d prefix. Maximum length of a textual sender name is 11 alphanumeric characters.<\/p>\n\n\n\n<p>The optional parameter \u201ctype\u201d specifies the format of the parameter \u201cmessage\u201d. In case the type is set to \u201cbin\u201d, parameter \u201cmessage\u201d should be in hexadecimal format.<\/p>\n\n\n\n<p>The optional parameter \u201cunicode\u201d specifies the encoding used for parameter \u201cmessage\u201d. If it is set to \u201cfalse\u201d, then the message will be checked against GSM 7bit alphabet (see the table below) and all the symbols not in the table will be converted to the respective latin characters or completely removed. If the parameter \u201cunicode\u201d is set to \u201ctrue\u201d and the message contains characters not in the GSM 7bit alphabet, then the message will be considered as utf-8 and reduce the length of the message to 70 (469) characters.<\/p>\n\n\n\n<p>The optional parameter \u201ctimestamp\u201d specifies the time when the user opted in to receive the message. If an end user has signed up for your service and has provided a mobile phone number to receive advertisements or informational messages, then you should provide \u201ctimestamp\u201d parameter with the sign-up time. If an owner of a mobile phone number is changed, number is closed or operator is changed, then the message will not be sent. If the new owner of a number opts in to receive messages, a new timestamp should be used.<\/p>\n\n\n\n<p>The \u201creport_url\u201d parameter should be used to receive delivery reports for sent messages. Please see below for detailed request specification.<\/p>\n\n\n\n<p>If the \u201cexpire\u201d parameter is not specified, the operator default expire time is used. If specified and the message is not delivered in the specified amount of seconds, you will received &#8220;expired&#8221; status. Exact behavior depends on the end user mobile phone operator validity period of the message and is not guaranteed to match the expire time specified in the parameter.<\/p>\n\n\n\n<p>The \u201cschedule\u201d parameter should be set if you want to delay the delivery of the message. The parameter must be in two weeks range from the current time.<\/p>\n\n\n\n<h2 id=\"another-h2\">2. Manual delivery reports<\/h2>\n\n\n\n<p>You can request a status of the sent message by an api call.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">2.1 HTTP interface<\/h3>\n\n\n\n<p>To request a status, SP must make a HTTP GET request to address:&nbsp;<em>https:\/\/api.text2reach.com\/sms\/status<\/em>&nbsp;query string values are specified below in the parameters table. The returned HTTP body will contain a status of the message.<\/p>\n\n\n\n<p>Example:<br><a target=\"_blank\" href=\"https:\/\/api.text2reach.com\/sms\/status?api_key=05A256117C15DE668784DC8CF6863AF2&amp;msg_id=1234567\" rel=\"noreferrer noopener\">https:\/\/api.text2reach.com\/sms\/status?api_key=05A256117C15DE668784DC8CF6863AF2&amp;msg_id=1234567<\/a><\/p>\n\n\n\n<h3 id=\"toc_1_1\">2.2 Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Name<\/td><td>Required<\/td><td>Default value<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>api_key<\/td><td>yes<\/td><td>&#8211;<\/td><td>your registered Bulk API key<\/td><\/tr><tr><td>msg_id<\/td><td>yes<\/td><td>&#8211;<\/td><td>message ID from \u201cbulk send\u201d api call<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"h3-after-h2\">3. Automatic delivery reports<\/h2>\n\n\n\n<p>Alternatively reports will be delivered to the \u201creport_url\u201d if it is provided in the send bulk api call. Delivery interface will be the same as used in the sending.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">3.1 HTTP interface<\/h3>\n\n\n\n<p>SMSGW makes a HTTP GET request to a \u201creport_url\u201d address provided by SP with the parameters found below. The SP handler script must respond with HTTP status code 200 or 201 or else the report will be retried for a total of 10 times with 2n minutes interval (n \u2013 retries counter) and then discarded.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">3.2 Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>msg_id<\/td><td>message id of the message this report belongs to, provided as a result of sending the message<\/td><\/tr><tr><td>status<\/td><td>status of the sent message,<br>delivered \u2013 the message was delivered successfully<br>undelivered \u2013 the message was not delivered<br>expired \u2013 the delivery reached time limit and was considered undelivered<br>canceled \u2013 the message was canceled before scheduled sendout<br>rejected \u2013 the message was rejected by SMSGW and was not charged<br>pending \u2013 the message is not jet delivered (this status is only reported using manual delivery checking)<br>unknown \u2013 message status is not known<\/td><\/tr><tr><td>retries<\/td><td>how many times platform tried to deliver report to the \u201creport_url\u201d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"enkurs-numur-3\">4. Extended delivery report<\/h2>\n\n\n\n<p>You can request a details of the sent message by an api call.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">4.1 HTTP interface<\/h3>\n\n\n\n<p>To request a details, SP must make a HTTP GET request to address:&nbsp;<em>https:\/\/api.text2reach.com\/sms\/details<\/em>&nbsp;query string values are specified below in the parameters table. The returned HTTP body will contain a status of the message.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">4.2 Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Name<\/td><td>Required<\/td><td>Default value<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>api_key<\/td><td>yes<\/td><td>&#8211;<\/td><td>your registered Bulk API key<\/td><\/tr><tr><td>msg_id<\/td><td>yes<\/td><td>&#8211;<\/td><td>message ID from \u201cbulk send\u201d api call<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"toc_1_1\">4.3 Returns<\/h3>\n\n\n\n<p>Error:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"success\" : 0,\n    \"message\" : \"Unknown msg_id\",\n    \"data\" : &#91;]\n}<\/code><\/pre>\n\n\n\n<p>Successfull:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"success\" : 1,\n    \"message\" : \"ok\",\n    \"data\" : {\n        \"msg_id\" : \"1234567\",\n        \"source\" : \"info\",  \/\/ from number\/alpha\n        \"destination\" : \"37129123456\", \/\/ to number\n        \"country\" : {\n            \"name\" : \"Latvia\",\n            \"iso\" : \"lv\",\n            \"mcc\" : \"247\"\n        },\n        \"operator\" : {\n            \"name\":\"Best Mobile Operator\",\n            \"mnc\":\"10\"\n        },\n        \"created\" : \"2017-01-01 10:00:00\",\n        \"delivered\" : \"2017-01-01 10:00:03\",\n        \"schedule\" : \"N\",\n        \"scheduled\" : null,\n        \"message\" : \"Hello World!\",\n        \"multipart\" : \"N\",\n        \"parts\" : 1,\n        \"price: : 0.0232,\n        \"sum\" : 0.0232,\n        \"status\" : \"delivered\" \/\/ statuses: delivered | undelivered | expired | canceled | rejected | pending\n    }\n}<\/code><\/pre>\n\n\n\n<h2 id=\"enkurs-numur-3\">5. Cancel SMS<\/h2>\n\n\n\n<p>You can cancel pending\/scheduled message by an api call.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">5.1 HTTP interface<\/h3>\n\n\n\n<p>Example:<br><a href=\"https:\/\/api.text2reach.com\/sms\/cancel?api_key=05A256117C15DE668784DC8CF6863AF2&amp;msg_id=1234567\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/api.text2reach.com\/sms\/cancel?api_key=05A256117C15DE668784DC8CF6863AF2&amp;msg_id=1234567<\/a><\/p>\n\n\n\n<p>To cancel message sending, SP must make a HTTP GET request to address:&nbsp;<em>https:\/\/api.text2reach.com\/sms\/cancel<\/em>&nbsp;query string values are specified below in the parameters table. The returned HTTP body will contain a status of the message.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">5.2 Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Name<\/td><td>Required<\/td><td>Default value<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>api_key<\/td><td>yes<\/td><td>&#8211;<\/td><td>your registered Bulk API key<\/td><\/tr><tr><td>msg_id<\/td><td>yes<\/td><td>&#8211;<\/td><td>message ID from \u201cbulk send\u201d api call<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"enkurs-numur-3\">6. Credits balance<\/h2>\n\n\n\n<p>Prepaid customers can request remains of credits on account.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">6.1 HTTP interface<\/h3>\n\n\n\n<p>To request a balance, SP must make a HTTP GET request to address:&nbsp;<em>https:\/\/api.text2reach.com\/sms\/credit<\/em>&nbsp;The returned HTTP body will contain a amount of credits.<\/p>\n\n\n\n<p>Example:<br><a href=\"https:\/\/api.text2reach.com\/sms\/credit?api_key=05A256117C15DE668784DC8CF6863AF2\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/api.text2reach.com\/sms\/credit?api_key=05A256117C15DE668784DC8CF6863AF2<\/a><\/p>\n\n\n\n<h3 id=\"toc_1_1\">6.2 Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Name<\/td><td>Required<\/td><td>Default value<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>api_key<\/td><td>yes<\/td><td>&#8211;<\/td><td>your registered Bulk API key<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"enkurs-numur-3\">7. Prices<\/h2>\n\n\n\n<h3 id=\"toc_1_1\">7.1 HTTP interface<\/h3>\n\n\n\n<p>To get all available prices by countries, SP must make a HTTP GET request to address: https:\/\/api.text2reach.com\/sms\/prices query string values are specified below in the parameters table. The returned HTTP body will contain an json structure.<\/p>\n\n\n\n<p>Example:<br><a href=\"https:\/\/api.text2reach.com\/sms\/prices?api_key=05A256117C15DE668784DC8CF6863AF2\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/api.text2reach.com\/sms\/prices?api_key=05A256117C15DE668784DC8CF6863AF2&amp;format=json<\/a><\/p>\n\n\n\n<p>Are available follows formats (only HTTP interface):<br><strong>json<\/strong>&nbsp;&#8211; Price in JSON format. This is default format.<br><strong>csv<\/strong>&nbsp;&#8211; prices in csv-file with comma delimeter<br><strong>xls<\/strong>&nbsp;&#8211; prices in Excel format file<\/p>\n\n\n\n<h3 id=\"toc_1_1\">7.2 Parameters <\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Name<\/td><td>Required<\/td><td>Default value<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>api_key<\/td><td>yes<\/td><td>&#8211;<\/td><td>your registered Bulk API key<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"toc_1_1\">7.3 Returns<\/h3>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n    ...\n    {\n        country : \"Belgium\",\n        iso     : \"be\",\n        code    : 32,\n        operator: \"Proximus\",\n        mcc\t    : 206,\n        mnc     : 1,\n        type    : \"all\",\n        price   : 0.123456,\n        note    : null\n    },\n    ...\n]<\/code><\/pre>\n\n\n\n<h2 id=\"enkurs-numur-3\">8. PIN \/ Verification code<\/h2>\n\n\n\n<p>Text2Reach API provides functionality to generate PIN code using custom fields in message body. To generate unique PIN code, you need to include custom field in any place of message body when sending SMS.<\/p>\n\n\n\n<h3 id=\"toc_1_1\">8.1 Custom field template<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>{PIN:&lt;TYPE&gt;:&lt;length&gt;:&lt;validity_period&gt;}<\/code><\/pre>\n\n\n\n<h3 id=\"toc_1_1\">8.2&nbsp;Custom field variables<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Variable<\/td><td>Mandatory<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>Type<\/td><td>yes<\/td><td>* &#8211; Alpha + numeric PIN code (A1B2)<br>N \u2013 Only Numeric PIN code (1234)<br>A \u2013 Only Alpha PIN code (ABCD)<\/td><\/tr><tr><td>Length<\/td><td>yes<\/td><td>Symbol count in numeric value<\/td><\/tr><tr><td>Validity period<\/td><td>yes<\/td><td>Validity period in seconds<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"toc_1_1\">8.3&nbsp;Custom field example<\/h3>\n\n\n\n<p>To send PIN code that consists of Alpha and Numeric values, is 8 characters long and is valid for one hour you need to insert following custom fields in any place in message body<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{PIN:*:8:3600}<\/code><\/pre>\n\n\n\n<h3 id=\"toc_1_1\">8.4&nbsp;Custom API endpoint<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;api.text2reach.com\/sms\/pin<\/code><\/pre>\n\n\n\n<h3 id=\"toc_1_1\">8.5 Request parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Parameter<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>api_key<\/td><td>API key that was used to request pin code generation<\/td><\/tr><tr><td>phone<\/td><td>Phone number to verify<\/td><\/tr><tr><td>pin<\/td><td>PIN code to verify<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"toc_1_1\">8.6 Request example<\/h3>\n\n\n\n<p><a href=\"https:\/\/api.text2reach.com\/sms\/pin?api_key=05A256117C15DE668784DC8CF6863AF2&amp;phone=3712123123&amp;pin=A1B2\">https:\/\/api.text2reach.com\/sms\/pin?api_key=05A256117C15DE668784DC8CF6863AF2&amp;phone=3712123123&amp;pin=A1B2<\/a><\/p>\n\n\n\n<h3 id=\"toc_1_1\">8.7 Response codes<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Response<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>VALID<\/td><td>PIN code is valid and matches to the one that was sent to phone number.<\/td><\/tr><tr><td>UNKNOWN<\/td><td>PIN code does not match to the one that was sent to phone number.<\/td><\/tr><tr><td>EXPIRED<\/td><td>PIN code has expired<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"enkurs-numur-3\">Error codes<\/h2>\n\n\n\n<p>If the message cannot be sent, the return value for msg_id will contain a negative integer which represents an error from the table below:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Value<\/td><td>Description<\/td><\/tr><\/thead><tbody><tr><td>-10<\/td><td>Geneal system error<\/td><\/tr><tr><td>-11<\/td><td>Wrong API KEY for the request<\/td><\/tr><tr><td>-12<\/td><td>Wrong Message ID<\/td><\/tr><tr><td>-14<\/td><td>Wrong source address<\/td><\/tr><tr><td>-15<\/td><td>Wrong destination address<\/td><\/tr><tr><td>-16<\/td><td>Wrong \u201ctype\u201d, must be \u201ctxt\u201d or \u201cbin\u201d<\/td><\/tr><tr><td>-17<\/td><td>Wrong message length (empty)<\/td><\/tr><tr><td>-18<\/td><td>Wrong message length (too long)<\/td><\/tr><tr><td>-19<\/td><td>Wrong &#8220;schedule&#8221; value<\/td><\/tr><tr><td>-20<\/td><td>Wrong &#8220;expires&#8221; value<\/td><\/tr><tr><td>-21<\/td><td>Phone in blacklist<\/td><\/tr><tr><td>-22<\/td><td>No route destination<\/td><\/tr><tr><td>-34<\/td><td>Message failed<\/td><\/tr><tr><td>-35<\/td><td>Client undefined<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"enkurs-numur-3\">GSM 7bit characters<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td>Character<\/td><td>Unicode<\/td><td>UTF-8<\/td><td>Character<\/td><td>Unicode<\/td><td>UTF-8<\/td><td>Character<\/td><td>Unicode<\/td><td>UTF-8<\/td><\/tr><\/thead><tbody><tr><td>@<\/td><td>0040<\/td><td>40<\/td><td>+<\/td><td>002B<\/td><td>2B<\/td><td>V<\/td><td>0056<\/td><td>56<\/td><\/tr><tr><td>\u00a3<\/td><td>00A3<\/td><td>C2A3<\/td><td>,<\/td><td>002C<\/td><td>2C<\/td><td>W<\/td><td>0057<\/td><td>57<\/td><\/tr><tr><td>$<\/td><td>0024<\/td><td>24<\/td><td>&#8211;<\/td><td>002D<\/td><td>2D<\/td><td>X<\/td><td>0058<\/td><td>58<\/td><\/tr><tr><td>\u00a5<\/td><td>00A5<\/td><td>C2A5<\/td><td>.<\/td><td>002E<\/td><td>2E<\/td><td>Y<\/td><td>0059<\/td><td>59<\/td><\/tr><tr><td>\u00e8<\/td><td>00E8<\/td><td>C3A8<\/td><td>\/<\/td><td>002F<\/td><td>2F<\/td><td>Z<\/td><td>005A<\/td><td>5A<\/td><\/tr><tr><td>\u00e9<\/td><td>00E9<\/td><td>C3A9<\/td><td>0<\/td><td>0030<\/td><td>30<\/td><td>\u00c4<\/td><td>00C4<\/td><td>C384<\/td><\/tr><tr><td>\u00f9<\/td><td>00F9<\/td><td>C3B9<\/td><td>1<\/td><td>0031<\/td><td>31<\/td><td>\u00d6<\/td><td>00D6<\/td><td>C396<\/td><\/tr><tr><td>\u00ec<\/td><td>00EC<\/td><td>C3AC<\/td><td>2<\/td><td>0032<\/td><td>32<\/td><td>\u00d1<\/td><td>00D1<\/td><td>C391<\/td><\/tr><tr><td>\u00f2<\/td><td>00F2<\/td><td>C3B2<\/td><td>3<\/td><td>0033<\/td><td>33<\/td><td>\u00dc<\/td><td>00DC<\/td><td>C39C<\/td><\/tr><tr><td>\u00c7<\/td><td>00C7<\/td><td>C387<\/td><td>4<\/td><td>0034<\/td><td>34<\/td><td>\u00a7<\/td><td>00A7<\/td><td>C2A7<\/td><\/tr><tr><td><\/td><td>000A<\/td><td>0A<\/td><td>5<\/td><td>0035<\/td><td>35<\/td><td>\u00bf<\/td><td>00BF<\/td><td>C2BF<\/td><\/tr><tr><td>\u00d8<\/td><td>00D8<\/td><td>C398<\/td><td>6<\/td><td>0036<\/td><td>36<\/td><td>a<\/td><td>0061<\/td><td>61<\/td><\/tr><tr><td>\u00f8<\/td><td>00F8<\/td><td>C3B8<\/td><td>7<\/td><td>0037<\/td><td>37<\/td><td>b<\/td><td>0062<\/td><td>62<\/td><\/tr><tr><td><\/td><td>000D<\/td><td>0D<\/td><td>8<\/td><td>0038<\/td><td>38<\/td><td>c<\/td><td>0063<\/td><td>63<\/td><\/tr><tr><td>\u00c5<\/td><td>00C5<\/td><td>C385<\/td><td>9<\/td><td>0039<\/td><td>39<\/td><td>d<\/td><td>0064<\/td><td>64<\/td><\/tr><tr><td>\u00e5<\/td><td>00E5<\/td><td>C3A5<\/td><td>:<\/td><td>003A<\/td><td>3A<\/td><td>e<\/td><td>0065<\/td><td>65<\/td><\/tr><tr><td>\u0394<\/td><td>0394<\/td><td>CE94<\/td><td>;<\/td><td>003B<\/td><td>3B<\/td><td>f<\/td><td>0066<\/td><td>66<\/td><\/tr><tr><td>_<\/td><td>005F<\/td><td>5F<\/td><td>&lt;<\/td><td>003C<\/td><td>3C<\/td><td>g<\/td><td>0067<\/td><td>67<\/td><\/tr><tr><td>\u03a6<\/td><td>03A6<\/td><td>CEA6<\/td><td>=<\/td><td>003D<\/td><td>3D<\/td><td>h<\/td><td>0068<\/td><td>68<\/td><\/tr><tr><td>\u0393<\/td><td>0393<\/td><td>CE93<\/td><td>&gt;<\/td><td>003E<\/td><td>3E<\/td><td>i<\/td><td>0069<\/td><td>69<\/td><\/tr><tr><td>\u039b<\/td><td>039B<\/td><td>CE9B<\/td><td>?<\/td><td>003F<\/td><td>3F<\/td><td>j<\/td><td>006A<\/td><td>6A<\/td><\/tr><tr><td>\u03a9<\/td><td>03A9<\/td><td>CEA9<\/td><td>\u00a1<\/td><td>00A1<\/td><td>C2A1<\/td><td>k<\/td><td>006B<\/td><td>6B<\/td><\/tr><tr><td>\u03a0<\/td><td>03A0<\/td><td>CEA0<\/td><td>A<\/td><td>0041<\/td><td>41<\/td><td>l<\/td><td>006C<\/td><td>6C<\/td><\/tr><tr><td>\u03a8<\/td><td>03A8<\/td><td>CEA8<\/td><td>B<\/td><td>0042<\/td><td>42<\/td><td>m<\/td><td>006D<\/td><td>6D<\/td><\/tr><tr><td>\u03a3<\/td><td>03A3<\/td><td>CEA3<\/td><td>C<\/td><td>0043<\/td><td>43<\/td><td>n<\/td><td>006E<\/td><td>6E<\/td><\/tr><tr><td>\u0398<\/td><td>0398<\/td><td>CE98<\/td><td>D<\/td><td>0044<\/td><td>44<\/td><td>o<\/td><td>006F<\/td><td>6F<\/td><\/tr><tr><td>\u039e<\/td><td>039E<\/td><td>CE9E<\/td><td>E<\/td><td>0045<\/td><td>45<\/td><td>p<\/td><td>0070<\/td><td>70<\/td><\/tr><tr><td>&nbsp;<\/td><td>00A0<\/td><td>C2A0<\/td><td>F<\/td><td>0046<\/td><td>46<\/td><td>q<\/td><td>0071<\/td><td>71<\/td><\/tr><tr><td>\u00c6<\/td><td>00C6<\/td><td>C386<\/td><td>G<\/td><td>0047<\/td><td>47<\/td><td>r<\/td><td>0072<\/td><td>72<\/td><\/tr><tr><td>\u00e6<\/td><td>00E6<\/td><td>C3A6<\/td><td>H<\/td><td>0048<\/td><td>48<\/td><td>s<\/td><td>0073<\/td><td>73<\/td><\/tr><tr><td>\u00df<\/td><td>00DF<\/td><td>C39F<\/td><td>I<\/td><td>0049<\/td><td>49<\/td><td>t<\/td><td>0074<\/td><td>74<\/td><\/tr><tr><td>\u00c9<\/td><td>00C9<\/td><td>C389<\/td><td>J<\/td><td>004A<\/td><td>4A<\/td><td>u<\/td><td>0075<\/td><td>75<\/td><\/tr><tr><td><\/td><td>0020<\/td><td>20<\/td><td>K<\/td><td>004B<\/td><td>4B<\/td><td>v<\/td><td>0076<\/td><td>76<\/td><\/tr><tr><td>!<\/td><td>0021<\/td><td>21<\/td><td>L<\/td><td>004C<\/td><td>4C<\/td><td>w<\/td><td>0077<\/td><td>77<\/td><\/tr><tr><td>&#8220;<\/td><td>0022<\/td><td>22<\/td><td>M<\/td><td>004D<\/td><td>4D<\/td><td>x<\/td><td>0078<\/td><td>78<\/td><\/tr><tr><td>#<\/td><td>0023<\/td><td>23<\/td><td>N<\/td><td>004E<\/td><td>4E<\/td><td>y<\/td><td>0079<\/td><td>79<\/td><\/tr><tr><td>\u00a4<\/td><td>00A4<\/td><td>C2A4<\/td><td>O<\/td><td>004F<\/td><td>4F<\/td><td>z<\/td><td>007A<\/td><td>7A<\/td><\/tr><tr><td>%<\/td><td>0025<\/td><td>25<\/td><td>P<\/td><td>0050<\/td><td>50<\/td><td>\u00e4<\/td><td>00E4<\/td><td>C3A4<\/td><\/tr><tr><td>&amp;<\/td><td>0026<\/td><td>26<\/td><td>Q<\/td><td>0051<\/td><td>51<\/td><td>\u00f6<\/td><td>00F6<\/td><td>C3B6<\/td><\/tr><tr><td>&#8216;<\/td><td>0027<\/td><td>27<\/td><td>R<\/td><td>0052<\/td><td>52<\/td><td>\u00f1<\/td><td>00F1<\/td><td>C3B1<\/td><\/tr><tr><td>(<\/td><td>0028<\/td><td>28<\/td><td>S<\/td><td>0053<\/td><td>53<\/td><td>\u00fc<\/td><td>00FC<\/td><td>C3BC<\/td><\/tr><tr><td>)<\/td><td>0029<\/td><td>29<\/td><td>T<\/td><td>0054<\/td><td>54<\/td><td>\u00e0<\/td><td>00E0<\/td><td>C3A0<\/td><\/tr><tr><td>*<\/td><td>002A<\/td><td>2A<\/td><td>U<\/td><td>0055<\/td><td>55<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td><sup>1<\/sup><\/td><td>000C<\/td><td>0C<\/td><td>\\&nbsp;<sup>1<\/sup><\/td><td>005C<\/td><td>5C<\/td><td>|&nbsp;<sup>1<\/sup><\/td><td>007C<\/td><td>7C<\/td><\/tr><tr><td>^&nbsp;<sup>1<\/sup><\/td><td>005E<\/td><td>5E<\/td><td>[&nbsp;<sup>1<\/sup><\/td><td>005B<\/td><td>5B<\/td><td>\u20ac&nbsp;<sup>1<\/sup><\/td><td>20AC<\/td><td>E282AC<\/td><\/tr><tr><td>{&nbsp;<sup>1<\/sup><\/td><td>007B<\/td><td>7B<\/td><td>~&nbsp;<sup>1<\/sup><\/td><td>007E<\/td><td>7E<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>}&nbsp;<sup>1<\/sup><\/td><td>007D<\/td><td>7D<\/td><td>]&nbsp;<sup>1<\/sup><\/td><td>005D<\/td><td>5D<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><figcaption>&nbsp;&nbsp;<sup>1<\/sup>&nbsp;&#8211; GSM 7bit single part message may contain up to 160 7bit septets. Marked characters use two septets in the message.<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Send SMS 1.1 HTTP interface To send a bulk message, SP must make a HTTP GET request to address:&nbsp;https:\/\/api.text2reach.com\/sms\/send&nbsp;query string values are specified below in the parameters table.&nbsp;All parameters should be properly url-encoded.&nbsp;The returned HTML body for the request will be a message ID or an error code. Example: https:\/\/api.text2reach.com\/sms\/send?api_key=XXXXXXXXXXX &amp;phone=37126378162&amp;from=29180083&amp;message=Hello+world 1.2 Custom fields [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-sidebar.php","meta":{"content-type":"","inline_featured_image":false},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SMS messaging API documentation - Text2reach<\/title>\n<meta name=\"description\" content=\"Create SMS account, connect your payment card, generate SMS API KEY and start using SMS messaging API within minutes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SMS messaging API documentation - Text2reach\" \/>\n<meta property=\"og:description\" content=\"Create SMS account, connect your payment card, generate SMS API KEY and start using SMS messaging API within minutes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/\" \/>\n<meta property=\"og:site_name\" content=\"Text2reach\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-06T14:07:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.text2reach.com\/wp-content\/uploads\/2022\/06\/opengraph.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.text2reach.com\/#website\",\"url\":\"https:\/\/www.text2reach.com\/\",\"name\":\"Text2reach\",\"description\":\"SMS izs\u016bt\u012b\u0161ana\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.text2reach.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/#webpage\",\"url\":\"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/\",\"name\":\"SMS messaging API documentation - Text2reach\",\"isPartOf\":{\"@id\":\"https:\/\/www.text2reach.com\/#website\"},\"datePublished\":\"2022-02-17T08:29:03+00:00\",\"dateModified\":\"2023-10-06T14:07:45+00:00\",\"description\":\"Create SMS account, connect your payment card, generate SMS API KEY and start using SMS messaging API within minutes.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.text2reach.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SMS messaging API documentation\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SMS messaging API documentation - Text2reach","description":"Create SMS account, connect your payment card, generate SMS API KEY and start using SMS messaging API within minutes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/","og_locale":"en_US","og_type":"article","og_title":"SMS messaging API documentation - Text2reach","og_description":"Create SMS account, connect your payment card, generate SMS API KEY and start using SMS messaging API within minutes.","og_url":"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/","og_site_name":"Text2reach","article_modified_time":"2023-10-06T14:07:45+00:00","og_image":[{"width":600,"height":600,"url":"https:\/\/www.text2reach.com\/wp-content\/uploads\/2022\/06\/opengraph.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.text2reach.com\/#website","url":"https:\/\/www.text2reach.com\/","name":"Text2reach","description":"SMS izs\u016bt\u012b\u0161ana","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.text2reach.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/#webpage","url":"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/","name":"SMS messaging API documentation - Text2reach","isPartOf":{"@id":"https:\/\/www.text2reach.com\/#website"},"datePublished":"2022-02-17T08:29:03+00:00","dateModified":"2023-10-06T14:07:45+00:00","description":"Create SMS account, connect your payment card, generate SMS API KEY and start using SMS messaging API within minutes.","breadcrumb":{"@id":"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.text2reach.com\/en\/sms-messaging-api-documentation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.text2reach.com\/en\/"},{"@type":"ListItem","position":2,"name":"SMS messaging API documentation"}]}]}},"_links":{"self":[{"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/pages\/3397"}],"collection":[{"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/comments?post=3397"}],"version-history":[{"count":7,"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/pages\/3397\/revisions"}],"predecessor-version":[{"id":5485,"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/pages\/3397\/revisions\/5485"}],"wp:attachment":[{"href":"https:\/\/www.text2reach.com\/en\/wp-json\/wp\/v2\/media?parent=3397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}