{"__v":6,"_id":"5565c1f35561af0d00820664","category":{"__v":3,"_id":"555d9b4106dfec0d00d38ea7","pages":["5565c1f35561af0d00820664","55812f9aa5474a0d00d943ee","560a45877c5c040d00422614"],"project":"54eb50e5615ffc1900305a16","version":"54eb63b859b1172100334fae","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-05-21T08:45:53.652Z","from_sync":false,"order":2,"slug":"advanced-sms-methods","title":"Advanced SMS methods"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"54eb50e5615ffc1900305a16","user":"54eb4fdedf7add210007b29b","version":{"__v":16,"_id":"54eb63b859b1172100334fae","forked_from":"54eb63a1867e1917009b711d","project":"54eb50e5615ffc1900305a16","createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"updates":[],"createdAt":"2015-05-27T13:09:07.807Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"POST /sms/1/text/advanced HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\n\n{\n   \"bulkId\":\"BULK-ID-123-xyz\",\n   \"messages\":[\n      {\n         \"from\":\"InfoSMS\",\n         \"destinations\":[\n            {\n               \"to\":\"41793026727\",\n               \"messageId\":\"MESSAGE-ID-123-xyz\"\n            },\n            {\n               \"to\":\"41793026731\"\n            }\n         ],\n         \"text\":\"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\",\n         \"flash\":false,\n         \"language\":{\n            \"languageCode\":\"TR\",\n            \"singleShift\":true,\n            \"lockingShift\":false\n         },\n         \"transliteration\":\"TURKISH\",\n         \"intermediateReport\":true,\n         \"notifyUrl\":\"http://www.example.com/sms/advanced\",\n         \"notifyContentType\":\"application/json\",\n         \"callbackData\":\"DLR callback data\",\n         \"validityPeriod\": 720\n      },\n      {\n         \"from\":\"41793026700\",\n         \"destinations\":[\n            {\n               \"to\":\"41793026785\"\n            }\n         ],\n         \"text\":\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\",\n  \t\t\t \"sendAt\":\"2015-07-07T17:00:00.000+01:00\"\n      }\n   ],\n   \"tracking\":{\n         \"track\":\"SMS\",\n     \t\t \"type\":\"MY_CAMPAIGN\"\n    }\n}","language":"json"},{"language":"xml","code":"POST /sms/1/text/advanced HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/xml\n\n<request>\n\t<bulkId>BULK-ID-123-xyz</bulkId>\n\t<messages>\n    <message>\n      <from>InfoSMS</from>\n      <destinations>\n        <destination>\n        \t<to>41793026727</to>\n        \t<messageId>MESSAGE-ID-123-xyz</messageId>\n        </destination>\n        <destination>\n          <to>41793026731</to>\n        </destination>\n      </destinations>\n      <text>Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.</text>\n      <flash>false</flash>\n      <language>\n        <languageCode>TR</languageCode>\n        <singleShift>true</singleShift>\n        <lockingShift>false</lockingShift>\n      </language>\n      <transliteration>TURKISH</transliteration>\n      <notifyUrl>http://www.example.com/sms/advanced</notifyUrl>\n      <notifyContentType>application/json</notifyContentType>\n      <callbackData>DLR callback data</callbackData>\n      <validityPeriod>720</validityPeriod>\n\t\t</message>\n\t\t<message>\n      <from>41793026700</from>\n      <destinations>\n        <destination>\n        \t<to>41793026785</to>\n        </destination>\n      </destinations>\n      <text>A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.</text>\n      <sendAt>2015-07-07T17:00:00.000+01:00</sendAt>\n\t\t</message>\n  </messages>\n</request>"},{"language":"curl","code":"curl -X POST \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==' \\\n -d '{\n   \"bulkId\":\"BULK-ID-123-xyz\",\n   \"messages\":[\n      {\n         \"from\":\"InfoSMS\",\n         \"destinations\":[\n            {\n               \"to\":\"41793026727\",\n               \"messageId\":\"MESSAGE-ID-123-xyz\"\n            },\n            {\n               \"to\":\"41793026731\"\n            }\n         ],\n         \"text\":\"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\",\n         \"flash\":false,\n         \"language\":{\n            \"singleShift\":true,\n            \"lockingShift\":false,\n            \"languageCode\":\"TR\"\n         },\n         \"transliteration\": \"TURKISH\"\n         \"notify\":true,\n         \"notifyUrl\":\"http://www.example.com/sms/advanced\",\n         \"notifyContentType\":\"application/json\",\n         \"callbackData\":\"DLR callback data\",\n         \"validityPeriod\": 720\n      },\n      {\n         \"from\":\"41793026700\",\n         \"destinations\":[\n            {\n               \"to\":\"41793026785\"\n            }\n         ],\n         \"text\":\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\"\n      },\n         \"sendAt\":\"2015-07-07T17:00:00.000+01:00\"\n   ]\n}' https://api.infobip.com/sms/1/text/advanced"},{"code":"<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.infobip.com/sms/1/text/advanced');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders(array(\n  'accept' => 'application/json',\n  'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==',\n  'content-type' => 'application/json'\n));\n\n$request->setBody('{\n   \"bulkId\":\"BULK-ID-123-xyz\",\n   \"messages\":[\n      {\n         \"from\":\"InfoSMS\",\n         \"destinations\":[\n            {\n               \"to\":\"41793026727\",\n               \"messageId\":\"MESSAGE-ID-123-xyz\"\n            },\n            {\n               \"to\":\"41793026731\"\n            }\n         ],\n         \"text\":\"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\",\n         \"flash\":false,\n         \"language\":{\n            \"languageCode\":\"TR\",\n            \"singleShift\":true,\n            \"lockingShift\":false\n         },\n         \"transliteration\":\"TURKISH\",\n         \"notifyUrl\":\"http://www.example.com/sms/advanced\",\n         \"notifyContentType\":\"application/json\",\n         \"callbackData\":\"DLR callback data\",\n         \"validityPeriod\": 720\n      },\n      {\n         \"from\":\"41793026700\",\n         \"destinations\":[\n            {\n               \"to\":\"41793026785\"\n            }\n         ],\n         \"text\":\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\",\n  \t\t\t \"sendAt\":\"2015-07-07T17:00:00.000+01:00\"\n      }\n   ]\n}');\n\ntry {\n  $response = $request->send();\n\n  echo $response->getBody();\n} catch (HttpException $ex) {\n  echo $ex;\n}","language":"php","name":"PHP"},{"name":"Ruby","language":"ruby","code":"require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.infobip.com/sms/1/text/advanced\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"authorization\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nrequest[\"accept\"] = 'application/json'\n\nrequest.body = \"{\\\"bulkId\\\":\\\"BULK-ID-123-xyz\\\", \\\"messages\\\":[{\\\"from\\\":\\\"InfoSMS\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026727\\\", \\\"messageId\\\":\\\"MESSAGE-ID-123-xyz\\\"}, {\\\"to\\\":\\\"41793026731\\\"}], \\\"text\\\":\\\"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\\\", \\\"flash\\\":false, \\\"language\\\":{\\\"languageCode\\\":\\\"TR\\\", \\\"singleShift\\\":true, \\\"lockingShift\\\":false}, \\\"transliteration\\\":\\\"TURKISH\\\", \\\"notifyUrl\\\":\\\"http://www.example.com/sms/advanced\\\", \\\"notifyContentType\\\":\\\"application/json\\\", \\\"callbackData\\\":\\\"DLR callback data\\\", \\\"validityPeriod\\\": 720}, {\\\"from\\\":\\\"41793026700\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026785\\\"}], \\\"text\\\":\\\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\\\",\\n  \\t\\t\\t \\\"sendAt\\\":\\\"2015-07-07T17:00:00.000+01:00\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"code":"import http.client\n\nconn = http.client.HTTPSConnection(\"api.infobip.com\")\n\npayload = \"{\\\"bulkId\\\":\\\"BULK-ID-123-xyz\\\", \\\"messages\\\":[{\\\"from\\\":\\\"InfoSMS\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026727\\\", \\\"messageId\\\":\\\"MESSAGE-ID-123-xyz\\\"}, {\\\"to\\\":\\\"41793026731\\\"}], \\\"text\\\":\\\"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\\\", \\\"flash\\\":false, \\\"language\\\":{\\\"languageCode\\\":\\\"TR\\\", \\\"singleShift\\\":true, \\\"lockingShift\\\":false}, \\\"transliteration\\\":\\\"TURKISH\\\", \\\"notifyUrl\\\":\\\"http://www.example.com/sms/advanced\\\", \\\"notifyContentType\\\":\\\"application/json\\\", \\\"callbackData\\\":\\\"DLR callback data\\\", \\\"validityPeriod\\\": 720}, {\\\"from\\\":\\\"41793026700\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026785\\\"}], \\\"text\\\":\\\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\\\",\\n  \\t\\t\\t \\\"sendAt\\\":\\\"2015-07-07T17:00:00.000+01:00\\\"}]}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'authorization': \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n    'accept': \"application/json\"\n    }\n\nconn.request(\"POST\", \"/sms/1/text/advanced\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))","language":"python"},{"code":"HttpResponse<String> response = Unirest.post(\"https://api.infobip.com/sms/1/text/advanced\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\")\n  .header(\"accept\", \"application/json\")\n  .body(\"{\\\"bulkId\\\":\\\"BULK-ID-123-xyz\\\", \\\"messages\\\":[{\\\"from\\\":\\\"InfoSMS\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026727\\\", \\\"messageId\\\":\\\"MESSAGE-ID-123-xyz\\\"}, {\\\"to\\\":\\\"41793026731\\\"}], \\\"text\\\":\\\"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\\\", \\\"flash\\\":false, \\\"language\\\":{\\\"languageCode\\\":\\\"TR\\\", \\\"singleShift\\\":true, \\\"lockingShift\\\":false}, \\\"transliteration\\\":\\\"TURKISH\\\", \\\"notifyUrl\\\":\\\"http://www.example.com/sms/advanced\\\", \\\"notifyContentType\\\":\\\"application/json\\\", \\\"callbackData\\\":\\\"DLR callback data\\\", \\\"validityPeriod\\\": 720}, {\\\"from\\\":\\\"41793026700\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026785\\\"}], \\\"text\\\":\\\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\\\",\\n  \\t\\t\\t \\\"sendAt\\\":\\\"2015-07-07T17:00:00.000+01:00\\\"}]}\")\n  .asString();","language":"java"},{"code":"var client = new RestClient(\"https://api.infobip.com/sms/1/text/advanced\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"bulkId\\\":\\\"BULK-ID-123-xyz\\\", \\\"messages\\\":[{\\\"from\\\":\\\"InfoSMS\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026727\\\", \\\"messageId\\\":\\\"MESSAGE-ID-123-xyz\\\"}, {\\\"to\\\":\\\"41793026731\\\"}], \\\"text\\\":\\\"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\\\", \\\"flash\\\":false, \\\"language\\\":{\\\"languageCode\\\":\\\"TR\\\", \\\"singleShift\\\":true, \\\"lockingShift\\\":false}, \\\"transliteration\\\":\\\"TURKISH\\\", \\\"notifyUrl\\\":\\\"http://www.example.com/sms/advanced\\\", \\\"notifyContentType\\\":\\\"application/json\\\", \\\"callbackData\\\":\\\"DLR callback data\\\", \\\"validityPeriod\\\": 720}, {\\\"from\\\":\\\"41793026700\\\", \\\"destinations\\\":[{\\\"to\\\":\\\"41793026785\\\"}], \\\"text\\\":\\\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\\\",\\n  \\t\\t\\t \\\"sendAt\\\":\\\"2015-07-07T17:00:00.000+01:00\\\"}]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);","language":"csharp"},{"code":"var data = JSON.stringify({\n  \"bulkId\": \"BULK-ID-123-xyz\",\n  \"messages\": [\n    {\n      \"from\": \"InfoSMS\",\n      \"destinations\": [\n        {\n          \"to\": \"41793026727\",\n          \"messageId\": \"MESSAGE-ID-123-xyz\"\n        },\n        {\n          \"to\": \"41793026731\"\n        }\n      ],\n      \"text\": \"Artık Ulusal Dil Tanımlayıcısı ile Türkçe karakterli smslerinizi rahatlıkla iletebilirsiniz.\",\n      \"flash\": false,\n      \"language\": {\n        \"languageCode\": \"TR\",\n        \"singleShift\": true,\n        \"lockingShift\": false\n      },\n      \"transliteration\": \"TURKISH\",\n      \"notifyUrl\": \"http://www.example.com/sms/advanced\",\n      \"notifyContentType\": \"application/json\",\n      \"callbackData\": \"DLR callback data\",\n      \"validityPeriod\": 720\n    },\n    {\n      \"from\": \"41793026700\",\n      \"destinations\": [\n        {\n          \"to\": \"41793026785\"\n        }\n      ],\n      \"text\": \"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\",\n      \"sendAt\": \"2015-07-07T17:00:00.000+01:00\"\n    }\n  ]\n});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://api.infobip.com/sms/1/text/advanced\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nxhr.setRequestHeader(\"accept\", \"application/json\");\n\nxhr.send(data);","language":"javascript"}]},"results":{"codes":[{"name":"OK - JSON","code":"HTTP/1.1 200 OK\nContent-Type: application/json\n\n{  \n   \"bulkId\": \"BULK-ID-123-xyz\",\n   \"messages\":[  \n      {  \n         \"to\":\"41793026727\",\n         \"status\":{  \n            \"groupId\":0,\n            \"groupName\":\"ACCEPTED\",\n            \"id\":0,\n            \"name\":\"MESSAGE_ACCEPTED\",\n            \"description\":\"Message accepted\"\n         },\n         \"smsCount\":1,\n         \"messageId\":\"MESSAGE-ID-123-xyz\"\n      },\n      {  \n         \"to\":\"41793026731\",\n         \"status\":{  \n            \"groupId\":0,\n            \"groupName\":\"ACCEPTED\",\n            \"id\":0,\n            \"name\":\"MESSAGE_ACCEPTED\",\n            \"description\":\"Message accepted\"\n         },\n         \"smsCount\":1,\n         \"messageId\":\"9304a5a3ab19-1ca1-be74-76ad87651ed25f35\"\n      },\n      {  \n         \"to\":\"41793026785\",\n         \"status\":{  \n            \"groupId\":0,\n            \"groupName\":\"ACCEPTED\",\n            \"id\":0,\n            \"name\":\"MESSAGE_ACCEPTED\",\n            \"description\":\"Message accepted\"\n         },\n         \"smsCount\":2,\n         \"messageId\":\"5f35f87a2f19-a141-43a4-91cd81b85f8c689\"\n      }\n   ]\n}","language":"json","status":200},{"status":200,"language":"xml","code":"HTTP/1.1 200 OK\nContent-Type: application/xml\n\n<smsResponse>\n   <bulkId>BULK-ID-123-xyz</bulkId>\n   <messages>\n      <message>\n         <to>41793026727</to>\n         <status>\n            <groupId>0</groupId>\n            <groupName>ACCEPTED</groupName>\n            <id>0</id>\n            <name>MESSAGE_ACCEPTED</name>\n            <description>Message accepted</description>\n         </status>\n         <smsCount>1</smsCount>\n         <messageId>MESSAGE-ID-123-xyz</messageId>\n      </message>\n      <message>\n         <to>41793026731</to>\n         <status>\n            <groupId>0</groupId>\n            <groupName>ACCEPTED</groupName>\n            <id>0</id>\n            <name>MESSAGE_ACCEPTED</name>\n            <description>Message accepted</description>\n         </status>\n         <smsCount>1</smsCount>\n         <messageId>9304a5a3ab19-1ca1-be74-76ad87651ed25f35</messageId>\n      </message>\n      <message>\n         <to>41793026785</to>\n         <status>\n            <groupId>0</groupId>\n            <groupName>ACCEPTED</groupName>\n            <id>0</id>\n            <name>MESSAGE_ACCEPTED</name>\n            <description>Message accepted</description>\n         </status>\n         <smsCount>2</smsCount>\n         <messageId>5f35f87a2f19-a141-43a4-91cd81b85f8c689</messageId>\n      </message>\n   </messages>\n</smsResponse>","name":"OK - XML"}]},"settings":"554860d6d2c8410d006c215e","auth":"required","params":[{"_id":"554a16e4b9fb933900cc74d0","ref":"","in":"body","required":false,"desc":"The ID which uniquely identifies the request. Bulk ID will be received only when you send a message to [more than one destination address](#section-multiple-textual-messages-to-multiple-destinations).","default":"","type":"string","name":"bulkId"},{"_id":"55156711bc466623002afe91","ref":"","in":"body","required":false,"desc":"Represents a sender ID which can be alphanumeric or numeric. *Alphanumeric* sender ID length should be between 3 and 11 characters (Example: `CompanyName`). *Numeric* sender ID length should be between 3 and 14 characters.","default":"","type":"string","name":"from"},{"_id":"555d8ce08ab3180d001ac4a4","ref":"","in":"body","required":true,"desc":"Message destination address. Addresses must be in international format (Example: `41793026727`).","default":"","type":"string","name":"to"},{"_id":"555d8ce08ab3180d001ac4a3","ref":"","in":"body","required":false,"desc":"The ID that uniquely identifies the message sent.","default":"","type":"string","name":"messageId"},{"_id":"55156711bc466623002afe8f","ref":"","in":"body","required":false,"desc":"Text of the message that will be sent.","default":"","type":"string","name":"text"},{"_id":"555c52747e271d0d00f3c8d7","ref":"","in":"body","required":false,"desc":"Can be `true` or `false`. If the value is set to `true`, a flash SMS will be sent. Otherwise, a normal SMS will be sent. The default value is `false`.","default":"","type":"boolean","name":"flash"},{"_id":"555c7cf07e271d0d00f3c917","ref":"","in":"body","required":false,"desc":"Conversion of a message text from one script to another. <br>Possible values: `\"TURKISH\"`, `\"GREEK\"`, `\"CYRILLIC\"`, `\"CENTRAL_EUROPEAN\"` and `\"NON_UNICODE\"`.","default":"","type":"string","name":"transliteration"},{"_id":"555d91c74f5e5a0d00836bc9","ref":"","in":"body","required":false,"desc":"Code for language character set of a message text.<br> Possible values: `TR` for Turkish, `ES` for Spanish and `PT` for Portuguese.","default":"","type":"string","name":"languageCode"},{"_id":"555d91c74f5e5a0d00836bcb","ref":"","in":"body","required":false,"desc":"Single shift table replacing the GSM 7 bit default alphabet extension table. Find more details [here](http://en.wikipedia.org/wiki/GSM_03.38).","default":"","type":"boolean","name":"singleShift"},{"_id":"555d91c74f5e5a0d00836bca","ref":"","in":"body","required":false,"desc":"Locking shift table replacing standard GSM 7 bit default alphabet table. Find more details [here](http://en.wikipedia.org/wiki/GSM_03.38).","default":"","type":"boolean","name":"lockingShift"},{"_id":"561e32c450e0a62100955983","ref":"","in":"body","required":false,"desc":"The real-time Intermediate delivery report that will be sent on your callback server. Can be `true` or `false`.","default":"","type":"boolean","name":"intermediateReport"},{"_id":"555c7cf07e271d0d00f3c91a","ref":"","in":"body","required":false,"desc":"The URL on your callback server on which the [Delivery report](http://dev.infobip.com/v1/docs/delivery-reports) will be sent.","default":"","type":"string","name":"notifyUrl"},{"_id":"555c7cf07e271d0d00f3c919","ref":"","in":"body","required":false,"desc":"Preferred Delivery report content type. Can be `application/json` or `application/xml`.","default":"","type":"string","name":"notifyContentType"},{"_id":"555c7cf07e271d0d00f3c918","ref":"","in":"body","required":false,"desc":"Additional client's data that will be sent on the notifyUrl.","default":"","type":"string","name":"callbackData"},{"_id":"5565c2cb5561af0d00820666","ref":"","in":"body","required":false,"desc":"The message validity period in minutes. When the period expires, it will not be allowed for the message to be sent. Validity period longer than 48h is not supported (in this case, it will be automatically set to 48h).","default":"","type":"int","name":"validityPeriod"},{"_id":"5565c2cb5561af0d00820665","ref":"","in":"body","required":false,"desc":"Date and time when the message is to be sent. Used for scheduled SMS (SMS not sent immediately, but at scheduled time).","default":"","type":"datetime","name":"sendAt"},{"_id":"5624e8a085a31117001c5436","ref":"","in":"body","required":false,"desc":"Indicates if the message has to be tracked for Conversion rates. <br>Possible values: `SMS` and `URL`","default":"","type":"string","name":"track"},{"_id":"5624e8a085a31117001c5435","ref":"","in":"body","required":false,"desc":"Key that uniquely identifies Conversion tracking process.","default":"","type":"string","name":"processKey"},{"_id":"5624e8a085a31117001c5434","ref":"","in":"body","required":false,"desc":"User defined type of the Conversion tracking process or flow type or message type, etc. Example: `ONE_TIME_PIN` or `SOCIAL_INVITES`.","default":"","type":"string","name":"type"}],"url":"/sms/:version/text/advanced"},"isReference":true,"order":0,"body":"# Fully featured textual message tutorials:\n\n- **[Custom bulk id and message id](doc:bulk-id-and-message-id)**\n- **[SMS transliteration](doc:transliteration)** \n- **[SMS language](doc:language)** \n- **[Flash SMS](doc:flash-sms)**\n- **[Schedule SMS and Validity period](doc:schedule-sms)**  \n- **[Intermediate delivery reports](doc:intermediate-delivery-reports)**\n- **[Delivery reports on Notify URL](doc:notify-url)** \n- **[SMS tracking solution](doc:sms-tracking)** \n- **[URL shortening & tracking solution](doc:url-shortening) **\n\n# Response format \n\nIf successful, response header HTTP status code will be `200 OK` and the message will be sent.\n\nIf you try to send the message without authorization, you will receive an `401 Unauthorized` error.\n\n## SMSResponse\n\n|Parameter|Type|Description|\n|-|-|-|\n|*bulkId*|String|The ID that uniquely identifies the request. Bulk ID will be received only when a message is sent to [more than one destination address](doc:sms-to-multiple-destinations).|\n|*messages*|[SMSResponseDetails[]](#section-smsresponsedetails)|Array of sent message objects, one object per every message.|\n\n### SMSResponseDetails\n\n|Parameter|Type|Description|\n|-|-|-|\n|*to*|String|The message destination address.|\n|*status*|[Status](#section-status)|Indicates whether the message is  sent successfully, not sent, delivered, not delivered, waiting for delivery or any other possible status.|\n|*smsCount*|int|The number of sent message segments.|\n|*messageId*|String|The ID that uniquely identifies the sent message.|\n\n#### Status\n\n|Parameter|Type|Description|\n|-|-|-|\n|*groupId*|int|Status [group ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*groupName*|String|Status [group name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*id*|int|Status [ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*name*|String|Status [name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#status-object-example) of the status.|\n|*action*|String|[Action](http://dev.infobip.com/v1/docs/response-codes#status-object-example) that should be taken to eliminate the error.|","excerpt":"Send advanced SMS with the all available features and parameters.","slug":"fully-featured-textual-message","type":"post","title":"Fully featured textual message"}

postFully featured textual message

Send advanced SMS with the all available features and parameters.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body JSON

bulkId:
string
The ID which uniquely identifies the request. Bulk ID will be received only when you send a message to [more than one destination address](#section-multiple-textual-messages-to-multiple-destinations).
from:
string
Represents a sender ID which can be alphanumeric or numeric. *Alphanumeric* sender ID length should be between 3 and 11 characters (Example: `CompanyName`). *Numeric* sender ID length should be between 3 and 14 characters.
to:
required
string
Message destination address. Addresses must be in international format (Example: `41793026727`).
messageId:
string
The ID that uniquely identifies the message sent.
text:
string
Text of the message that will be sent.
flash:
boolean
Can be `true` or `false`. If the value is set to `true`, a flash SMS will be sent. Otherwise, a normal SMS will be sent. The default value is `false`.
transliteration:
string
Conversion of a message text from one script to another. <br>Possible values: `"TURKISH"`, `"GREEK"`, `"CYRILLIC"`, `"CENTRAL_EUROPEAN"` and `"NON_UNICODE"`.
languageCode:
string
Code for language character set of a message text.<br> Possible values: `TR` for Turkish, `ES` for Spanish and `PT` for Portuguese.
singleShift:
boolean
Single shift table replacing the GSM 7 bit default alphabet extension table. Find more details [here](http://en.wikipedia.org/wiki/GSM_03.38).
lockingShift:
boolean
Locking shift table replacing standard GSM 7 bit default alphabet table. Find more details [here](http://en.wikipedia.org/wiki/GSM_03.38).
intermediateReport:
boolean
The real-time Intermediate delivery report that will be sent on your callback server. Can be `true` or `false`.
notifyUrl:
string
The URL on your callback server on which the [Delivery report](http://dev.infobip.com/v1/docs/delivery-reports) will be sent.
notifyContentType:
string
Preferred Delivery report content type. Can be `application/json` or `application/xml`.
callbackData:
string
Additional client's data that will be sent on the notifyUrl.
validityPeriod:
integer
The message validity period in minutes. When the period expires, it will not be allowed for the message to be sent. Validity period longer than 48h is not supported (in this case, it will be automatically set to 48h).
sendAt:
datetime
Date and time when the message is to be sent. Used for scheduled SMS (SMS not sent immediately, but at scheduled time).
track:
string
Indicates if the message has to be tracked for Conversion rates. <br>Possible values: `SMS` and `URL`
processKey:
string
Key that uniquely identifies Conversion tracking process.
type:
string
User defined type of the Conversion tracking process or flow type or message type, etc. Example: `ONE_TIME_PIN` or `SOCIAL_INVITES`.

Examples


Result Format


Documentation

# Fully featured textual message tutorials: - **[Custom bulk id and message id](doc:bulk-id-and-message-id)** - **[SMS transliteration](doc:transliteration)** - **[SMS language](doc:language)** - **[Flash SMS](doc:flash-sms)** - **[Schedule SMS and Validity period](doc:schedule-sms)** - **[Intermediate delivery reports](doc:intermediate-delivery-reports)** - **[Delivery reports on Notify URL](doc:notify-url)** - **[SMS tracking solution](doc:sms-tracking)** - **[URL shortening & tracking solution](doc:url-shortening) ** # Response format If successful, response header HTTP status code will be `200 OK` and the message will be sent. If you try to send the message without authorization, you will receive an `401 Unauthorized` error. ## SMSResponse |Parameter|Type|Description| |-|-|-| |*bulkId*|String|The ID that uniquely identifies the request. Bulk ID will be received only when a message is sent to [more than one destination address](doc:sms-to-multiple-destinations).| |*messages*|[SMSResponseDetails[]](#section-smsresponsedetails)|Array of sent message objects, one object per every message.| ### SMSResponseDetails |Parameter|Type|Description| |-|-|-| |*to*|String|The message destination address.| |*status*|[Status](#section-status)|Indicates whether the message is sent successfully, not sent, delivered, not delivered, waiting for delivery or any other possible status.| |*smsCount*|int|The number of sent message segments.| |*messageId*|String|The ID that uniquely identifies the sent message.| #### Status |Parameter|Type|Description| |-|-|-| |*groupId*|int|Status [group ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*groupName*|String|Status [group name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*id*|int|Status [ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*name*|String|Status [name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#status-object-example) of the status.| |*action*|String|[Action](http://dev.infobip.com/v1/docs/response-codes#status-object-example) that should be taken to eliminate the error.|