Multiple SMS to multiple destinations

Send specific messages to multiple destinations.

Imagine you want to target your customers by offering them their favorite product during your next promotion. Every customer is specific and you shouldn’t send the same message to all of them. Tailor your SMS messages according to customers’ preferences and get their full attention.

You can use our multiple textual messages for that purpose. This option gives you the ability to send multiple messages to multiple destinations by calling one API method only once.

Your request should be like this:

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

{  
   "messages":[  
      {  
         "from":"WineShop",
         "to":"41793026727",
         "text":"Hey Mike, delicious Istrian Malvazija is finally here. Feel free to visit us and try it for free!"
      },
      {  
         "from":"WineShop",
         "to":"41793026834",
         "text":"Hi Jenny, we have new French Merlot on our shelves. Drop by our store for a free degustation!"
      }
   ]
}	
  

This way you’ll send specific SMS messages to multiple destinations in a single request. The response you get will contain information about all the messages sent out:

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

{
    "bulkId": "2034072219640523073",
    "messages": [
        {
            "to": "41793026727",
            "status": {
                "groupId": 1,
                "groupName": "PENDING",
                "id": 7,
                "name": "PENDING_ENROUTE",
                "description": "Message sent to next instance"
            },
            "smsCount": 1,
            "messageId": "2034072219640523074"
        },
        {
            "to": "41793026834",
            "status": {
                "groupId": 1,
                "groupName": "PENDING",
                "id": 7,
                "name": "PENDING_ENROUTE",
                "description": "Message sent to next instance"
            },
            "smsCount": 1,
            "messageId": "2034072219650523075"
        }
    ]
}	
  

After you have sent these messages, you will be able to get detailed stats and analyze them. For example, you can measure how many customers received the SMS invitation by getting the delivery reports: