How can I integrate SMS API


To integrate our APIs into your system:


1. Login to MSG91- 



2. Select the SMS option from the dashboard 



3. Under "SMS", click "Support" in the sidebar & Select the API documentation option on the dropdown.




4. API documentation will get opened.


5. You can fill in the parameters, such as template ID (MSG91 template ID), mobile number (including country code), and variables, to get the final API. In the header option, enter the Authkey, and then press "Try" to send the SMS. On the right side of the panel, by clicking on the "more" option in Sample Codes, you can get the API codes in various languages. 



NOTE:

Variable values keep on changing, you may have 1, 2, 3 variables; or so. Pass the variables in the API depending on the variables you have in your flow and write the variable in the exact format as you did while creating the flow (this is case-sensitive as well). 


1. The mobile variable will always be dynamic, and you have to insert it into the API, which is the mobile number of the user to whom you want to send SMS. 


2. To shorten the URL in your content, pass the value as 1. 


3. The message variable can be static or dynamic, as per your implementation.


4. The authentication key, sender ID, and route will always be static.