How to Migrate from Twilio to MSG91?


Welcome to MSG91! As you are looking for migration from your existing communication platform, we would like to bring you onboard with MSG91. We are glad to see you here and we appreciate your business.


MSG91's cloud communication platform offers powerful messaging solutions to empower business communications.


MSG91 APIs are developer-friendly, globally scalable, and super secure. We provide in-depth insights into the delivered messages. In addition, you can integrate contacts and use various pre-built plugins for complete customization and single-click integration with several SaaS platforms.


This reference guide is designed to integrate our REST APIs within minutes. We have included some sample codes to help you with the most common steps needed to integrate MSG91.

You can mail us at [email protected] for queries. 



Lets Begin:


Step 1


Signup for MSG91 by clicking here, once logged in you can start building your applications on top of our API, to send actual messages your Demo account needs to be upgraded to a User account and will be done automatically once we complete our KYC process.


Step 2


Now that your account is active and ready, We recommend you explore your dashboard. It's self intuitive, in case of any questions please reach out to us. We are there for you 18X7! Our bot is available 24*7.


Here is an example of the Twilio Send SMS code in PHP.

Base URL of Twilio API is :

For sending SMS - https://api.twilio.com/2010-04-01


Base URL of MSG91 is:

For sending single messages - https://api.msg91.com/api/sendhttp.php

For sending bulk messages - https://api.msg91.com/api/v2/sendsms


Below is a sample PHP code of Twilio,  which requires Account SID, Auth token, Twilio number, Client and Body



Below is a PHP sample code of MSG91. Parameters required here are Auth key, Mobiles, Country, Message, Sender, and Route.



Few key things to remember - 


The advantage of using MSG91 over Twilio is that our codes do not require any prerequisites. There is no package installation required, without installation you can begin sending SMS. Twilio generates a response with all the details of which the user has prior knowledge. MSG91 generates a Request ID which marks the successful hit of the message. All other details can be fetched anytime under the delivery report section.