Developer Tools
BasicText SMSCampaignOTPVirtual NumberResellerSample CodePhonebookError Code
HOME LOGIN SIGN UP
  • OTP Message
  • Verify OTP
  • Resend OTP
  • Sample Code
    • » PHP
    • » Python

OTP message

Sample API
Get http://world.msg91.com/api/otp.php?authkey=YourAuthKey&mobile=919999999990&message=Your%20otp%20is%202786&sender=senderid&otp=2786
Parameter name Data type Description
authkey * alphanumeric Login authentication key (this key is unique for every user)
mobile * integer Keep number in international format (with country code)
message varchar Message content to send. (default : Your verification code is ##OTP##.)
sender varchar Receiver will see this as sender's ID. (default : SMSIND)
otp integer OTP to send and verify. If not sent, OTP will be generated.
otp_expiry integer Expiry of OTP to verify, in minutes (default : 1 day, min : 1 minute)
otp_length integer Number of digits in OTP (default : 4, min : 4, max : 9)

Parameters with (*) are mandatory.

Sample Output
{"message":"3763646c3058373530393938","type":"success"}

Need help in generating API?

Fill the details below to generate the desired API

Authentication Key *:
Mobile *:
Message :
Sender ID :
OTP :
OTP Expiry :
OTP Length :
                            

Output:

© 2008-2025 | All Rights Reserved.