Avoid duplicate SMS and OTPs with the Fast2SMS API: safe retries and timeouts
Duplicate SMS usually come from your own code, not from Fast2SMS: a request times out, your app retries it, and both requests are sent and charged....
The Fast2SMS API lets your app or website send SMS, WhatsApp, OTP, RCS and voice calls with an API key. Start here: DLT SMS API, Send OTP API, API error codes.
147 articles
Duplicate SMS usually come from your own code, not from Fast2SMS: a request times out, your app retries it, and both requests are sent and charged....
To receive incoming WhatsApp messages and button replies on your own server, create a WhatsApp webhook in Fast2SMS with the event Incoming Messages and your URL....
WhatsApp error 3, error 10 and errors in the 200-299 range all mean the same thing in plain words: the token used for the request does...
WhatsApp error 0 and error 190 mean Meta could not accept the access token sent with an API request. Error 190 says the token has expired....
When a customer writes to your WhatsApp number, you can reply with any text, image, video, audio, document, location or reaction for the next 24 hours....
To send a WhatsApp template with an image, video or PDF header through the Fast2SMS API, add media_url to the normal template request: a public link...
To check whether a WhatsApp message sent through the Fast2SMS API was delivered or read, call GET https://www.fast2sms.com/dev/whatsapp/{request_id} with the request_id you got when you sent...
You can check your Fast2SMS wallet balance in two ways: click the wallet amount at the top of the panel, or call the wallet API (POST...
To send a bulk voice call with the Fast2SMS API, POST your numbers and an approved voice file's file_id to https://www.fast2sms.com/dev/voice/bulk. Every number gets a call...
A Request ID is the unique ID Fast2SMS gives to every SMS send, whether it is one number or a whole campaign. You see it at...
The Fast2SMS Verify OTP API checks if the code your user typed matches the OTP you sent with Smart OTP. You send the mobile number and...
Smart OTP has two settings you can change: how many times a user can try to verify one OTP, and how many seconds must pass before...
The Fast2SMS Send OTP API sends a one-time password to an Indian mobile number on SMS or WhatsApp with one call. You pass the mobile number...
The Fast2SMS Resend OTP API sends the same OTP again to a number, for the "Didn't get the code? Resend" button on your login or signup...
An OTP login is only as safe as the rules around it. This guide covers OTP security best practices for apps and websites that use Fast2SMS:...
Can't find your answer? Our support team is happy to help.