SMS One Time Password (OTP)
How to send a OTP via SMS
You can use ClickSend to send a OTP using SMS.
- Generate the OTP in your code e.g. "1234" and store it (in a database on your server)
- Call our POST sms/send endpoint
- Allow the user to input the OTP
- Your script should validate it against the stored OTP
It's recommended that you put in limits for the maximum times a user can send a OTP and also how many times they can attempt to guess the OTP.