{"id":17578,"date":"2026-11-18T23:11:28","date_gmt":"2026-11-18T17:41:28","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/?p=17578"},"modified":"2026-11-19T00:54:06","modified_gmt":"2026-11-18T19:24:06","slug":"smart-otp-setup-guide-fast2sms","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/","title":{"rendered":"Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback"},"content":{"rendered":"<p>Smart OTP in Fast2SMS lets you send a one-time password on SMS or WhatsApp with one API call, check it with a second call, and fall back to the other channel when the first one fails. OTPs sent through Smart OTP go out on a priority route. This guide is for website and app owners who want OTP login or verification. You will create an OTP template, set your OTP rules, run a test, connect the API and read the OTP report.<\/p>\n<p class=\"f2s-lang-switch\" lang=\"hi\">\u092f\u0939 \u0917\u093e\u0907\u0921 \u0939\u093f\u0902\u0926\u0940 \u092e\u0947\u0902 \u092a\u0922\u093c\u0947\u0902: <a href=\"\/help\/smart-otp-kaise-use-kare\/\" hreflang=\"hi\">Smart OTP \u0915\u0948\u0938\u0947 use \u0915\u0930\u0947\u0902 (Smart OTP kaise use kare): template, fallback \u0914\u0930 API<\/a><\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Start sending Smart OTP<\/strong><p>Create your first OTP template on SMS or WhatsApp and get an OTP ID for your API.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>What Smart OTP is<\/h2>\n<p>A Smart OTP template links an <strong>OTP ID<\/strong> to a message you already have approved. For SMS that is an approved DLT content template and its sender ID. For WhatsApp it is an approved Authentication or Utility template on your WhatsApp number. You choose which variable in the message carries the OTP, and Fast2SMS fills it in.<\/p>\n<p>Your code only needs the OTP ID and the customer&#8217;s mobile number. Fast2SMS creates the OTP, sends it, stores it and tells you if the code the customer typed is right. You do not need to keep OTPs in your own database.<\/p>\n<p>The OTP ID is a 10-character code made by Fast2SMS. You cannot choose it. You can copy it from the template card.<\/p>\n<h2>Before you start<\/h2>\n<ul>\n<li>A Fast2SMS account with wallet balance. Every OTP is charged, including tests and resends. See current rates on the <a href=\"https:\/\/www.fast2sms.com\/otp-sms\">OTP SMS page<\/a>.<\/li>\n<li>For SMS OTP: an approved DLT Entity ID, Sender ID and an OTP content template with at least one variable, added in <strong>DLT Manager<\/strong>.<\/li>\n<li>For WhatsApp OTP: a WhatsApp Business number connected in <strong>WhatsApp Manager<\/strong> and an approved Authentication or Utility template.<\/li>\n<li>Your <a href=\"\/help\/api-key-find-reset\/\">API key<\/a> from <strong>API Key<\/strong> under UTILITY (you need it for the API, not for the panel steps).<\/li>\n<\/ul>\n<h2>Set up Smart OTP in the panel<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Open the OTP Template List<\/h3>\n<p>Switch to the Smart OTP app and click <strong>OTP Template List<\/strong>. Each template is a card with a phone preview, the <strong>OTP ID<\/strong>, the sender or WhatsApp number, the template ID and the fallback. The OTP spot in the message is marked with a red OTP badge. Under each card you have <strong>Sample Code<\/strong>, <strong>Test OTP<\/strong>, <strong>Fallback<\/strong> and <strong>Delete<\/strong>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Smart OTP Template page with WhatsApp and SMS OTP template cards showing OTP ID, number, template ID and fallback\"><figcaption>Your OTP templates, one card per OTP ID.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Create an SMS OTP template<\/h3>\n<p>Click <strong>Add OTP Template<\/strong> and stay on <strong>SMS Channel<\/strong>. Pick <strong>Select Entity<\/strong>, then <strong>Select Sender<\/strong>, then <strong>Select Template<\/strong>. Only approved templates linked to that sender that have at least one variable are listed. The <strong>OTP Content Preview<\/strong> shows the text. Click the variable button that should carry the OTP. The chosen one reads &#8220;Variable 1 (Selected)&#8221; and so on. Click <strong>Assign OTP Template<\/strong>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-add-sms-filled-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Add OTP Template modal on SMS Channel with entity, sender, DLT template, preview and variable buttons\"><figcaption>Choose the DLT template and the variable that holds the OTP.<\/figcaption><\/figure>\n<div class=\"f2s-note\">If no entity appears, add your Entity ID in <a href=\"\/help\/dlt-manager-entity-sender-template-guide\/\">DLT Manager<\/a> first. One DLT template can be used in only one Smart OTP template. A second try shows &#8220;You have already created an OTP template for this DLT content.&#8221;<\/div>\n<\/li>\n<li>\n<h3>Or create a WhatsApp OTP template<\/h3>\n<p>In the same window click <strong>WhatsApp Channel<\/strong>. Choose <strong>Select WhatsApp Business Number<\/strong>, then <strong>Select WhatsApp Template (Authentication\/Utility)<\/strong>. Marketing templates never appear here. Pick the OTP variable and click <strong>Assign OTP Template<\/strong>. You will see &#8220;WhatsApp OTP Template created successfully&#8221;.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-add-whatsapp-filled-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Add OTP Template modal on WhatsApp Channel with business number, login_otp template and Variable 1 selected\"><figcaption>A WhatsApp OTP template using an Authentication template.<\/figcaption><\/figure>\n<p>The template is active as soon as you save it. There is no separate approval for Smart OTP because the DLT or WhatsApp template is already approved.<\/p>\n<\/li>\n<li>\n<h3>Add a fallback on the other channel<\/h3>\n<p>Tick <strong>SET FALLBACK TEMPLATE<\/strong> before you save. For an SMS template the fallback is WhatsApp: choose the number, the template and the OTP variable. For a WhatsApp template the fallback is SMS: choose the entity, sender, DLT template and variable. To add, change or remove a fallback later, click <strong>Fallback<\/strong> on the card. Untick the box and save to remove it.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-add-sms-with-whatsapp-fallback-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"SET FALLBACK TEMPLATE ticked with Fallback Channel WhatsApp, a business number and the login_otp template\"><figcaption>An SMS OTP with a WhatsApp fallback.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Set verify attempts and resend wait<\/h3>\n<p>Click <strong>OTP Settings<\/strong>. <strong>Max Verify OTP Limit (Per SMS)<\/strong> is how many times a user can try to verify one OTP (1 to 100). <strong>SMS Resend \/ Time Limit (Seconds)<\/strong> is the wait before the same template can go to the same number on the same channel again (0 to 3600, 0 means no wait). Click <strong>Save Settings<\/strong>. If you never save this page, the limits are 10 attempts and 10 seconds.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-settings-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"OTP Settings page with Max Verify OTP Limit 5 and SMS Resend Time Limit 30 seconds\"><figcaption>These settings apply to SMS and WhatsApp OTP.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Send a test OTP<\/h3>\n<p>Click <strong>Test OTP<\/strong> on the card, type a 10-digit mobile number and click <strong>Send Test OTP<\/strong>. The window shows &#8220;Message sent. Checking DLR&#8230;&#8221; and waits for the operator report. You then see &#8220;Delivered successfully&#8221; or the failure reason. If no report comes in 30 seconds, it shows &#8220;Delivery report pending&#8221; with a link to the OTP report.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-test-modal-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Test OTP window with OTP ID and a 10-digit mobile number and a Send Test OTP button\"><figcaption>Test OTP uses the same path as the API.<\/figcaption><\/figure>\n<div class=\"f2s-note f2s-note--warn\">A test OTP is a real message and is charged like an API send. Your resend wait, wallet check and DLT checks all apply to it.<\/div>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-test-dlr-pending-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Test OTP window showing Delivery report pending, message sent, check status in OTP Logs\"><figcaption>No report yet after 30 seconds. Check the OTP report later.<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Add OTP login to your site<\/strong><p>Use one OTP ID for SMS and WhatsApp, with automatic fallback when a message fails.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Connect the Smart OTP API: send, verify, resend<\/h2>\n<p>Click <strong>Sample Code<\/strong> on a card to get ready code in cURL, PHP, Node.js or Python for <strong>Send OTP<\/strong>, <strong>Verify OTP<\/strong> and <strong>Resend OTP<\/strong>. The OTP ID of that card is already filled in. Full reference is on <a href=\"https:\/\/docs.fast2sms.com\">docs.fast2sms.com<\/a>.<\/p>\n<p>All three calls accept POST (JSON) or GET. Put your API key in the <code>authorization<\/code> header exactly as it is. Do not add &#8220;Bearer&#8221; in front of it, or you get &#8220;Invalid authorization key&#8221;.<\/p>\n<h3>1. Send the OTP<\/h3>\n<pre><code>curl -X POST 'https:\/\/www.fast2sms.com\/dev\/otp\/send' \\\n  -H 'authorization: DEMO_API_KEY' \\\n  -H 'Content-Type: application\/json' \\\n  -d '{\"mobile\":\"9999999999\",\"otp_id\":\"DEMO_OTP_ID\",\"otp_expiry\":15,\"otp_length\":6}'<\/code><\/pre>\n<p>Success:<\/p>\n<pre><code>{\"return\":true,\"status_code\":200,\"request_id\":\"O...\",\"message\":\"OTP sent successfully\"}<\/code><\/pre>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Required<\/th>\n<th>What it does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>mobile<\/code><\/td>\n<td>Yes<\/td>\n<td>10-digit number. A leading 91 is removed.<\/td>\n<\/tr>\n<tr>\n<td><code>otp_id<\/code><\/td>\n<td>Yes<\/td>\n<td>The OTP ID from your template card.<\/td>\n<\/tr>\n<tr>\n<td><code>otp_expiry<\/code><\/td>\n<td>No<\/td>\n<td>Minutes the OTP stays valid, 1 to 10080. Default 15.<\/td>\n<\/tr>\n<tr>\n<td><code>otp_length<\/code><\/td>\n<td>No<\/td>\n<td>4 to 10 digits. Default 6. Other values become 6.<\/td>\n<\/tr>\n<tr>\n<td><code>otp<\/code><\/td>\n<td>No<\/td>\n<td>Your own OTP value, up to 10 characters.<\/td>\n<\/tr>\n<tr>\n<td><code>variables_values<\/code><\/td>\n<td>No<\/td>\n<td>Values for the other variables, separated by <code>|<\/code>. The OTP variable is filled for you.<\/td>\n<\/tr>\n<tr>\n<td><code>udf1<\/code>, <code>udf2<\/code>, <code>udf3<\/code><\/td>\n<td>No<\/td>\n<td>Your own reference values, stored with the send.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"f2s-note\">The Sample Code window shows <code>\/\/ optional<\/code> notes inside the JSON. Remove them before you send, because JSON does not allow comments.<\/div>\n<h3>2. Verify the code the user typed<\/h3>\n<pre><code>curl -X POST 'https:\/\/www.fast2sms.com\/dev\/otp\/verify' \\\n  -H 'authorization: DEMO_API_KEY' \\\n  -H 'Content-Type: application\/json' \\\n  -d '{\"mobile\":\"9999999999\",\"otp\":\"123456\"}'<\/code><\/pre>\n<p>A match returns HTTP 200 with &#8220;OTP verified successfully&#8221;. Let the user in only on this answer.<\/p>\n<h3>3. Resend the same OTP<\/h3>\n<pre><code>curl -X POST 'https:\/\/www.fast2sms.com\/dev\/otp\/resend' \\\n  -H 'authorization: DEMO_API_KEY' \\\n  -H 'Content-Type: application\/json' \\\n  -d '{\"mobile\":\"9999999999\"}'<\/code><\/pre>\n<p>Resend sends the <strong>same<\/strong> OTP again with the same OTP ID and expiry, and gives a new request ID. It works only within 10 minutes of the first send and up to 5 sends in total, counting the first one. Each resend is charged.<\/p>\n<p>Prefer plain URLs? Under <strong>API Excel<\/strong>, the Smart OTP API Excel file lists every active OTP ID with ready send, verify and resend URLs.<\/p>\n<h2>API answers and errors<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Call<\/th>\n<th>Message<\/th>\n<th>What to do<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Any<\/td>\n<td>Authorization key required \/ Invalid authorization key<\/td>\n<td>Send the key in the <code>authorization<\/code> header without &#8220;Bearer&#8221;.<\/td>\n<\/tr>\n<tr>\n<td>Any<\/td>\n<td>Invalid Authentication, Authorization Key Disabled<\/td>\n<td>Turn on API Access on the API Key page.<\/td>\n<\/tr>\n<tr>\n<td>Any<\/td>\n<td>IP is blacklisted from Dev API section<\/td>\n<td><a href=\"\/help\/api-security-ip-whitelist\/\">API Security<\/a> is on. Add your server IP to Whitelisted IPs.<\/td>\n<\/tr>\n<tr>\n<td>Send<\/td>\n<td>Invalid OTP ID<\/td>\n<td>Check the ID. A deleted template&#8217;s ID stops working.<\/td>\n<\/tr>\n<tr>\n<td>Send<\/td>\n<td>Please wait N seconds before requesting a new OTP<\/td>\n<td>Your OTP Settings resend wait is still running for this number.<\/td>\n<\/tr>\n<tr>\n<td>Send<\/td>\n<td>Insufficient wallet balance. You need at least \u20b9&#8230;<\/td>\n<td>Add money to your wallet.<\/td>\n<\/tr>\n<tr>\n<td>Send<\/td>\n<td>WhatsApp Business Number is not active or connected<\/td>\n<td>Reconnect the number in WhatsApp Manager.<\/td>\n<\/tr>\n<tr>\n<td>Send<\/td>\n<td>Entity blocked \/ Content template blocked \/ Sender ID blocked<\/td>\n<td>Check the entity, template or sender in DLT Manager.<\/td>\n<\/tr>\n<tr>\n<td>Verify<\/td>\n<td>Invalid OTP<\/td>\n<td>Wrong code. The user can try again until the attempt limit.<\/td>\n<\/tr>\n<tr>\n<td>Verify<\/td>\n<td>OTP expired<\/td>\n<td>Send a new OTP.<\/td>\n<\/tr>\n<tr>\n<td>Verify<\/td>\n<td>Maximum verification attempts reached. OTP is no longer valid.<\/td>\n<td>Send a new OTP.<\/td>\n<\/tr>\n<tr>\n<td>Verify<\/td>\n<td>OTP not found or already verified<\/td>\n<td>See &#8220;Verify fails&#8221; below.<\/td>\n<\/tr>\n<tr>\n<td>Resend<\/td>\n<td>OTP resend window (10 minutes) has expired. Please request a new OTP.<\/td>\n<td>Call send again.<\/td>\n<\/tr>\n<tr>\n<td>Resend<\/td>\n<td>Maximum resend limit (5 times) reached. Please try again later.<\/td>\n<td>Wait, then call send again.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>How fallback works<\/h2>\n<p>If the first message is reported as failed within 120 seconds of sending, Fast2SMS sends the same OTP once on the fallback channel. The fallback is charged as its own message. It is skipped if your wallet balance is too low, or, for a WhatsApp fallback, if the number is not connected. The user verifies the same code either way.<\/p>\n<h2>Check the OTP delivery report<\/h2>\n<p>Click <strong>Delivery Report<\/strong> in the Smart OTP menu to open <strong>OTP Report<\/strong>. It opens on the last 2 days and shows Total, Delivered, Read, Failed, Sent and Pending. The OTP digits in each message are shown as <code>xxxx<\/code>. Use the filter to pick an <strong>OTP Channel<\/strong>, a mobile number or a request ID.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otp-report-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"OTP Reports page with summary cards, OTP Activity chart, status donut and OTP rows for SMS and WhatsApp\"><figcaption>OTP Report for the last 2 days.<\/figcaption><\/figure>\n<p>Click a row to open <strong>Delivery Details<\/strong>. When a fallback was sent, you see two receiver rows under the same request ID, one with an SMS badge and one with a WhatsApp badge.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otp-report-detail-fallback-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Delivery Details of an OTP that failed on SMS and was delivered on WhatsApp\"><figcaption>SMS failed, then the WhatsApp fallback was delivered.<\/figcaption><\/figure>\n<p>Want to know which users actually verified? Use <strong>Export<\/strong> in Delivery Reports. The OTP export file has <strong>Verified<\/strong> (Yes, No or Expired) and <strong>Verified At<\/strong> columns. The panel pages do not show this. For what each delivery status means, see <a href=\"\/help\/sms-delivery-report-status-meaning\/\">SMS delivery report statuses explained<\/a>. To get statuses on your own server, set up an <a href=\"\/help\/fast2sms-webhooks-setup-delivery-reports\/\">OTP webhook<\/a>.<\/p>\n<h2>Common problems and fixes<\/h2>\n<h3>OTP not received<\/h3>\n<p>Open the OTP report and find the number. If it shows Failed, open Delivery Details for the reason, such as a switched-off phone, <a href=\"\/help\/dnd-numbers-sms-delivery\/\">DND<\/a>, a blocked or invalid number. If it is Pending or Sent, the operator has not confirmed it yet. Add a fallback on the other channel so a failed SMS can still reach the user on WhatsApp, or the other way round. If the API returned an error, the OTP was never sent; check API Logs under Account Settings.<\/p>\n<h3>Verify fails even though the code looks right<\/h3>\n<p>Verify checks only the <strong>latest unverified OTP<\/strong> for that mobile number. When you send a new OTP to the same number, every older OTP for that number stops working, even one sent with a different OTP ID. If your user taps &#8220;send&#8221; twice and types the first code, verify fails. Ask users to use the newest message, or use Resend, which repeats the same code. An OTP that is already verified also returns &#8220;OTP not found or already verified&#8221;.<\/p>\n<h3>Resend gives &#8220;Please wait&#8221; or stops working<\/h3>\n<p>&#8220;Please wait N seconds&#8221; comes from your <strong>SMS Resend \/ Time Limit<\/strong> in OTP Settings. The resend window (10 minutes) and the 5-send limit are fixed and cannot be changed in settings. Show a timer on your resend button that matches your wait setting.<\/p>\n<h3>My DLT or WhatsApp template is not in the list<\/h3>\n<p>For SMS, the DLT template must be approved, linked to the chosen sender, and have at least one variable. For WhatsApp, it must be approved and in the Authentication or Utility category, on the same number.<\/p>\n<h3>&#8220;Invalid OTP ID&#8221; after deleting a template<\/h3>\n<p>Deleting a template needs your account password and makes its OTP ID invalid in all API calls. Create a new template and update the OTP ID in your code.<\/p>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Is a test OTP free?<\/h3>\n<p>No. Test OTP sends a real message and charges your wallet like an API send.<\/p>\n<h3>Does resend send a new OTP?<\/h3>\n<p>No. Resend sends the same OTP again, and each resend is charged. To get a new code, call send again.<\/p>\n<h3>Can I set my own OTP value?<\/h3>\n<p>Yes. Pass it in the <code>otp<\/code> parameter, up to 10 characters. If you leave it out, Fast2SMS makes one with the length you ask for.<\/p>\n<h3>How long is an OTP valid?<\/h3>\n<p>15 minutes by default. Set <code>otp_expiry<\/code> in minutes, from 1 to 10080.<\/p>\n<h3>Is the fallback charged?<\/h3>\n<p>Yes. The fallback message is charged on its own channel. In Transaction History it shows with &#8220;Fallback&#8221; in the line.<\/p>\n<h3>Can I send OTP with the DLT SMS API instead?<\/h3>\n<p>Yes. You can send an OTP with the DLT SMS API or the <a href=\"\/help\/dlt-manual-api-guide\/\">DLT Manual API<\/a> using your own approved DLT OTP template. In that case your app creates the code and checks it. Smart OTP is our recommended option because it sends on SMS and WhatsApp with fallback, uses a priority route and has verify and resend built in.<\/p>\n<h3>Where can I see if a user verified the OTP?<\/h3>\n<p>Only in the OTP report export file, in the Verified and Verified At columns.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Send OTP on SMS and WhatsApp<\/strong><p>Set up Smart OTP with fallback in a few minutes and verify codes with one API call.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"\/help\/fast2sms-webhooks-setup-delivery-reports\/\">Webhooks in Fast2SMS: get delivery reports on your own URL<\/a><\/li>\n<li><a href=\"\/help\/how-bulk-sms-works-in-fast2sms\/\">How bulk SMS works in Fast2SMS<\/a><\/li>\n<li><a href=\"\/help\/sms-delivery-report-status-meaning\/\">SMS delivery report in Fast2SMS: every status explained<\/a><\/li>\n<li><a href=\"\/help\/otp-sms-smart-otp\/\">OTP SMS for websites: Smart OTP with WhatsApp fallback explained<\/a><\/li>\n<li><a href=\"\/help\/woocommerce-otp-not-received\/\">WooCommerce OTP not received? Causes and fixes<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/otp-sms\">Fast2SMS OTP SMS<\/a><\/li>\n<li><a href=\"https:\/\/docs.fast2sms.com\">Fast2SMS API documentation<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Smart OTP in Fast2SMS lets you send a one-time password on SMS or WhatsApp with one API call, check it with a second call, and fall back to the other channel when the first one fails. OTPs sent through Smart OTP go out on a priority route. This guide is for website and app owners [&hellip;]<\/p>\n","protected":false},"featured_media":17728,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-17578","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-otp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Smart OTP Setup: SMS + WhatsApp OTP API | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Set up Smart OTP in Fast2SMS: create SMS or WhatsApp OTP templates with fallback, set verify and resend limits, test, and use the send, verify, resend API.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smart OTP Setup: SMS + WhatsApp OTP API | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Set up Smart OTP in Fast2SMS: create SMS or WhatsApp OTP templates with fallback, set verify and resend limits, test, and use the send, verify, resend API.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/\" \/>\n<meta property=\"og:site_name\" content=\"Fast2SMS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Fast2SMS\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T17:41:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T19:24:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:site\" content=\"@fast2sms\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback\",\"datePublished\":\"2026-11-18T17:41:28+00:00\",\"dateModified\":\"2026-11-18T19:24:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/\"},\"wordCount\":2217,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-scaled.webp\",\"articleSection\":[\"API\",\"OTP\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/\",\"name\":\"Smart OTP Setup: SMS + WhatsApp OTP API | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-scaled.webp\",\"datePublished\":\"2026-11-18T17:41:28+00:00\",\"dateModified\":\"2026-11-18T19:24:06+00:00\",\"description\":\"Set up Smart OTP in Fast2SMS: create SMS or WhatsApp OTP templates with fallback, set verify and resend limits, test, and use the send, verify, resend API.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"Smart OTP Template page with WhatsApp and SMS OTP template cards showing OTP ID, number, template ID and fallback\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/smart-otp-setup-guide-fast2sms\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/api\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\",\"name\":\"Fast2SMS\",\"description\":\"Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\",\"name\":\"Fast2SMS\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"caption\":\"Fast2SMS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\"},\"email\":\"support@fast2sms.com\",\"telephone\":\"+91-6262778822\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Fast2SMS\",\"https:\\\/\\\/www.instagram.com\\\/fast2sms\",\"https:\\\/\\\/x.com\\\/fast2sms\",\"https:\\\/\\\/www.youtube.com\\\/Fast2SMSofficial\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/fast2sms\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Smart OTP Setup: SMS + WhatsApp OTP API | Fast2SMS","description":"Set up Smart OTP in Fast2SMS: create SMS or WhatsApp OTP templates with fallback, set verify and resend limits, test, and use the send, verify, resend API.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/","og_locale":"en_US","og_type":"article","og_title":"Smart OTP Setup: SMS + WhatsApp OTP API | Fast2SMS","og_description":"Set up Smart OTP in Fast2SMS: create SMS or WhatsApp OTP templates with fallback, set verify and resend limits, test, and use the send, verify, resend API.","og_url":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T17:41:28+00:00","article_modified_time":"2026-11-18T19:24:06+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-scaled.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_creator":"@fast2sms","twitter_site":"@fast2sms","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback","datePublished":"2026-11-18T17:41:28+00:00","dateModified":"2026-11-18T19:24:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/"},"wordCount":2217,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-scaled.webp","articleSection":["API","OTP"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/","url":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/","name":"Smart OTP Setup: SMS + WhatsApp OTP API | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-scaled.webp","datePublished":"2026-11-18T17:41:28+00:00","dateModified":"2026-11-18T19:24:06+00:00","description":"Set up Smart OTP in Fast2SMS: create SMS or WhatsApp OTP templates with fallback, set verify and resend limits, test, and use the send, verify, resend API.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-scaled.webp","width":2560,"height":1600,"caption":"Smart OTP Template page with WhatsApp and SMS OTP template cards showing OTP ID, number, template ID and fallback"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"API","item":"https:\/\/www.fast2sms.com\/help\/api\/"},{"@type":"ListItem","position":3,"name":"Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback"}]},{"@type":"WebSite","@id":"https:\/\/www.fast2sms.com\/help\/#website","url":"https:\/\/www.fast2sms.com\/help\/","name":"Fast2SMS","description":"Help","publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/www.fast2sms.com\/#organization","name":"Fast2SMS","url":"https:\/\/www.fast2sms.com\/","logo":{"@type":"ImageObject","@id":"https:\/\/www.fast2sms.com\/#logo","url":"https:\/\/www.fast2sms.com\/Fast2SMS.png","contentUrl":"https:\/\/www.fast2sms.com\/Fast2SMS.png","caption":"Fast2SMS"},"image":{"@id":"https:\/\/www.fast2sms.com\/#logo"},"email":"support@fast2sms.com","telephone":"+91-6262778822","sameAs":["https:\/\/www.facebook.com\/Fast2SMS","https:\/\/www.instagram.com\/fast2sms","https:\/\/x.com\/fast2sms","https:\/\/www.youtube.com\/Fast2SMSofficial","https:\/\/www.linkedin.com\/company\/fast2sms"]}]}},"_links":{"self":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/17578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/comments?post=17578"}],"version-history":[{"count":3,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/17578\/revisions"}],"predecessor-version":[{"id":19427,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/17578\/revisions\/19427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/17728"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=17578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=17578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=17578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}