How to create a template to Send OTP.
Check the below article or just check this quick video -
Create Template
Login to your account and click on OTP.
MSG91 Dashboard
Click on "Templates"
Click on the "Add template" option on the top right.
OTP Template View
Fill in the details as required in the below fields. Once done, scroll down and click on the "Add Template" button. Add the variable for OTP placeholder as ##OTP##To add the sender ID in MSG91, please refer to this article.
Add Template Dialogue Box
You will see the template ID here, which is to be put in the Send OTP API.
API Documentation: Just Click Here:)
Please check all 3 APIs, i.e., Send OTP, Resend OTP (via text or voice), and Verify OTP in the above API doc.
To use Token security in OTP, please refer to this article.