Long SMS

Send an SMS longer than 160 characters in a single request.

Sending a long SMS is not that different from sending a standard SMS. Request is the same, and the only difference is that you submit a text that is longer than 160 characters. Your response will contain the smsCount field that will indicate how many parts your message was split into. The message will be charged per number of its parts.

The example below shows a long SMS request:

POST /sms/1/text/single HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json

{  
   "from":"WineShop",
   "to":"41793026727",
   "text":"Wine has been produced for thousands of years, with the earliest wines being drunk c. 6000 BC in Georgia. It had reached the Balkans by c. 4500 BC and was consumed and celebrated in ancient Greece and Rome."
}	
  

And the response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "messages": [
        {
            "to": "41793026727",
            "status": {
                "groupId": 1,
                "groupName": "PENDING",
                "id": 7,
                "name": "PENDING_ENROUTE",
                "description": "Message sent to next instance"
            },
            "smsCount": 4,
            "messageId": "2034075536371630429"
        }
    ]
}	
  

As you can see, smsCount is 4 because our SMS had more than 160 characters. It will be segmented and charged as four messages, but the recipient will receive it as one long message.