{"id":17988,"date":"2026-11-18T23:44:07","date_gmt":"2026-11-18T18:14:07","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/"},"modified":"2026-11-19T00:48:50","modified_gmt":"2026-11-18T19:18:50","slug":"fast2sms-otp-api-guide","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/","title":{"rendered":"Fast2SMS OTP API: Smart OTP vs DLT SMS vs DLT Manual, which to use"},"content":{"rendered":"<p>Fast2SMS gives you three ways to send an OTP by API: <strong>Smart OTP<\/strong>, the <strong>DLT SMS API<\/strong> and the <strong>DLT Manual API<\/strong>. Smart OTP is the one we recommend. It sends the OTP on SMS or WhatsApp on a priority route, can fall back to the other channel, and checks the code for you. This guide explains how each OTP API works, what you need before you start, and which one fits your website or app.<\/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\/otp-sms-service-kya-hai\/\" hreflang=\"hi\">OTP SMS service \u0915\u094d\u092f\u093e \u0939\u0948 (OTP SMS service kya hai) \u0914\u0930 website \u092f\u093e app \u0938\u0947 OTP \u0915\u0948\u0938\u0947 \u092d\u0947\u091c\u0947\u0902<\/a><\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Send your first OTP with Smart OTP<\/strong><p>Create an OTP template, copy the OTP ID and send OTPs on SMS or WhatsApp 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>Short answer: which OTP API should I use?<\/h2>\n<ul>\n<li><strong>Use Smart OTP<\/strong> if you want login, signup or checkout OTPs with the least code. Fast2SMS makes the code, sends it, lets the user resend it, and tells you if the code typed is right. It works on SMS and WhatsApp, with automatic fallback.<\/li>\n<li><strong>Use the DLT SMS API<\/strong> if you already create and check OTPs in your own app and only need Fast2SMS to deliver the SMS through your DLT template saved in <strong>DLT Manager<\/strong>.<\/li>\n<li><strong>Use the DLT Manual API<\/strong> if you want to send the full approved DLT text with your Entity ID and Template ID in each request, without adding the template to Fast2SMS first.<\/li>\n<\/ul>\n<p>All three need DLT for SMS, because every business SMS in India must use a DLT-approved sender and template. Smart OTP on WhatsApp needs a connected WhatsApp Business number instead.<\/p>\n<figure class=\"f2s-diagram\">\n<svg viewBox=\"0 0 760 170\" width=\"100%\" role=\"img\" aria-labelledby=\"f2sOtpFlowTitle\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<title id=\"f2sOtpFlowTitle\">Smart OTP flow: your app calls Send OTP, Fast2SMS sends on SMS or WhatsApp, the user types the code, your app calls Verify OTP, the user is logged in<\/title>\n<defs><marker id=\"f2sOtpArrow\" viewBox=\"0 0 10 10\" refX=\"9\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto\"><path d=\"M0,0 L10,5 L0,10 z\" fill=\"#7F56D9\"\/><\/marker><\/defs>\n<g font-family=\"Arial, sans-serif\" text-anchor=\"middle\">\n<rect x=\"10\" y=\"30\" width=\"128\" height=\"110\" rx=\"10\" fill=\"#EAECF0\" stroke=\"#7F56D9\" stroke-width=\"2\"\/>\n<text x=\"74\" y=\"70\" font-size=\"14\" font-weight=\"bold\" fill=\"#101828\">1. Send OTP<\/text>\n<text x=\"74\" y=\"94\" font-size=\"12\" fill=\"#101828\">mobile + OTP ID<\/text>\n<text x=\"74\" y=\"110\" font-size=\"12\" fill=\"#101828\">from your server<\/text>\n<rect x=\"162\" y=\"30\" width=\"128\" height=\"110\" rx=\"10\" fill=\"#EAECF0\" stroke=\"#7F56D9\" stroke-width=\"2\"\/>\n<text x=\"226\" y=\"70\" font-size=\"14\" font-weight=\"bold\" fill=\"#101828\">2. Delivered<\/text>\n<text x=\"226\" y=\"94\" font-size=\"12\" fill=\"#101828\">SMS or WhatsApp,<\/text>\n<text x=\"226\" y=\"110\" font-size=\"12\" fill=\"#101828\">fallback if failed<\/text>\n<rect x=\"314\" y=\"30\" width=\"128\" height=\"110\" rx=\"10\" fill=\"#EAECF0\" stroke=\"#7F56D9\" stroke-width=\"2\"\/>\n<text x=\"378\" y=\"70\" font-size=\"14\" font-weight=\"bold\" fill=\"#101828\">3. User types<\/text>\n<text x=\"378\" y=\"94\" font-size=\"12\" fill=\"#101828\">the code in<\/text>\n<text x=\"378\" y=\"110\" font-size=\"12\" fill=\"#101828\">your app<\/text>\n<rect x=\"466\" y=\"30\" width=\"128\" height=\"110\" rx=\"10\" fill=\"#EAECF0\" stroke=\"#7F56D9\" stroke-width=\"2\"\/>\n<text x=\"530\" y=\"70\" font-size=\"14\" font-weight=\"bold\" fill=\"#101828\">4. Verify OTP<\/text>\n<text x=\"530\" y=\"94\" font-size=\"12\" fill=\"#101828\">mobile + code<\/text>\n<text x=\"530\" y=\"110\" font-size=\"12\" fill=\"#101828\">from your server<\/text>\n<rect x=\"618\" y=\"30\" width=\"128\" height=\"110\" rx=\"10\" fill=\"#7F56D9\" stroke=\"#7F56D9\" stroke-width=\"2\"\/>\n<text x=\"682\" y=\"70\" font-size=\"14\" font-weight=\"bold\" fill=\"#FFFFFF\">5. Logged in<\/text>\n<text x=\"682\" y=\"94\" font-size=\"12\" fill=\"#FFFFFF\">only on &#8220;OTP<\/text>\n<text x=\"682\" y=\"110\" font-size=\"12\" fill=\"#FFFFFF\">verified successfully&#8221;<\/text>\n<line x1=\"140\" y1=\"85\" x2=\"158\" y2=\"85\" stroke=\"#7F56D9\" stroke-width=\"2\" marker-end=\"url(#f2sOtpArrow)\"\/>\n<line x1=\"292\" y1=\"85\" x2=\"310\" y2=\"85\" stroke=\"#7F56D9\" stroke-width=\"2\" marker-end=\"url(#f2sOtpArrow)\"\/>\n<line x1=\"444\" y1=\"85\" x2=\"462\" y2=\"85\" stroke=\"#7F56D9\" stroke-width=\"2\" marker-end=\"url(#f2sOtpArrow)\"\/>\n<line x1=\"596\" y1=\"85\" x2=\"614\" y2=\"85\" stroke=\"#7F56D9\" stroke-width=\"2\" marker-end=\"url(#f2sOtpArrow)\"\/>\n<\/g>\n<\/svg><figcaption>With Smart OTP your app only makes two calls: Send OTP and Verify OTP.<\/figcaption><\/figure>\n<h2>Smart OTP vs DLT SMS vs DLT Manual compared<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>Smart OTP<\/th>\n<th>DLT SMS API<\/th>\n<th>DLT Manual API<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Endpoint<\/td>\n<td><code>\/dev\/otp\/send<\/code>, <code>\/dev\/otp\/verify<\/code>, <code>\/dev\/otp\/resend<\/code><\/td>\n<td><code>\/dev\/bulkV2<\/code> with <code>route=dlt<\/code><\/td>\n<td><code>\/dev\/bulkV2<\/code> with <code>route=dlt_manual<\/code><\/td>\n<\/tr>\n<tr>\n<td>Channels<\/td>\n<td>SMS and WhatsApp, with fallback to the other channel<\/td>\n<td>SMS only<\/td>\n<td>SMS only<\/td>\n<\/tr>\n<tr>\n<td>Who makes the OTP<\/td>\n<td>Fast2SMS (or you, with the <code>otp<\/code> field)<\/td>\n<td>Your app<\/td>\n<td>Your app<\/td>\n<\/tr>\n<tr>\n<td>Who checks the OTP<\/td>\n<td>Fast2SMS, with the Verify OTP call<\/td>\n<td>Your app<\/td>\n<td>Your app<\/td>\n<\/tr>\n<tr>\n<td>Resend<\/td>\n<td>Built in, sends the same code<\/td>\n<td>You send a new SMS yourself<\/td>\n<td>You send a new SMS yourself<\/td>\n<\/tr>\n<tr>\n<td>What you pass<\/td>\n<td><code>mobile<\/code> and <code>otp_id<\/code><\/td>\n<td><code>sender_id<\/code>, <code>message<\/code> (the Message ID), <code>variables_values<\/code>, <code>numbers<\/code><\/td>\n<td><code>sender_id<\/code>, full <code>message<\/code> text, <code>entity_id<\/code>, <code>template_id<\/code>, <code>numbers<\/code><\/td>\n<\/tr>\n<tr>\n<td>Setup in the panel<\/td>\n<td>Create an OTP template in Smart OTP to get an OTP ID<\/td>\n<td>Add entity, sender and template in DLT Manager<\/td>\n<td>Nothing if you send both IDs<\/td>\n<\/tr>\n<tr>\n<td>Attempt and resend limits<\/td>\n<td>Yes, in <strong>OTP Settings<\/strong><\/td>\n<td>Build your own<\/td>\n<td>Build your own<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Option 1: Smart OTP (recommended)<\/h2>\n<p>Smart OTP is Fast2SMS&#8217;s <a href=\"\/help\/multi-channel-otp-explained\/\">multi-channel OTP<\/a>. You create an <strong>OTP template<\/strong> in the panel. It links a 10-character <strong>OTP ID<\/strong> to an approved DLT OTP template (for SMS) or an approved WhatsApp Authentication or Utility template (for WhatsApp). You can add a fallback on the other channel. If the first message is reported as failed within 120 seconds, the same OTP goes out once on the fallback channel.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-5-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, number or sender ID, template ID and fallback\"><figcaption>Each Smart OTP template card shows the OTP ID you use in the API.<\/figcaption><\/figure>\n<p>Your server sends the OTP with one call:<\/p>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/www.fast2sms.com\/dev\/otp\/send\" \\\n  -H \"authorization: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"mobile\":\"9999999999\",\"otp_id\":\"YOUR_OTP_ID\",\"otp_expiry\":5,\"otp_length\":6}'<\/code><\/pre>\n<p>When the user types the code, your server checks it:<\/p>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/www.fast2sms.com\/dev\/otp\/verify\" \\\n  -H \"authorization: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"mobile\":\"9999999999\",\"otp\":\"482913\"}'<\/code><\/pre>\n<p>Log the user in only when the answer is &#8220;OTP verified successfully&#8221;. To send the same code again, call <code>\/dev\/otp\/resend<\/code> with the mobile number. Resend works for 10 minutes after the first send and allows 5 sends in total, counting the first one.<\/p>\n<div class=\"f2s-note\">Send the <a href=\"\/help\/api-key-find-reset\/\">API key<\/a> in the <code>authorization<\/code> header exactly as it is. Do not put &#8220;Bearer&#8221; in front of it for the OTP API, or you get &#8220;Invalid authorization key&#8221;.<\/div>\n<p>Why we recommend it:<\/p>\n<ul>\n<li>You do not store or compare OTPs in your database.<\/li>\n<li>Expiry (1 to 10080 minutes, default 15), verify attempts and resend wait are handled for you.<\/li>\n<li>Sending a new OTP to a number cancels the older ones, so an old code cannot be used later.<\/li>\n<li>SMS and WhatsApp share one OTP ID, so a failed SMS can still reach the user on WhatsApp, or the other way round.<\/li>\n<li>Delivery shows in the <strong>OTP Report<\/strong> and can be pushed to your server with an OTP webhook.<\/li>\n<\/ul>\n<h2>Option 2: DLT SMS API with your own OTP template<\/h2>\n<p>Here your app creates the OTP, saves it with an expiry time, and sends it inside your DLT OTP template. Fast2SMS only delivers the SMS. You pass the template&#8217;s <strong>Message ID<\/strong> from DLT Manager, not the 19-digit DLT Template ID.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-template-list-hd-10-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"DLT Manager Content Template page with approved OTP templates, each card showing Message ID, Sender ID, Template ID and Entity\"><figcaption>Use the Message ID from the template card as <code>message<\/code> in the API.<\/figcaption><\/figure>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/www.fast2sms.com\/dev\/bulkV2\" \\\n  -H \"authorization: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"route\":\"dlt\",\"sender_id\":\"YOURID\",\"message\":\"YOUR_MESSAGE_ID\",\"variables_values\":\"482913\",\"numbers\":\"9999999999\"}'<\/code><\/pre>\n<p>The values in <code>variables_values<\/code> fill the <code>{#var#}<\/code> spots of the template in order, separated by <code>|<\/code>. Each value is cut to 40 characters. The sender ID must match the approved sender exactly, including capital letters. A success looks like <code>{\"return\":true,\"request_id\":\"S...\",\"message\":[\"SMS sent successfully.\"]}<\/code>. This only means the SMS was accepted. Always check <code>return<\/code> in the reply, not only the HTTP code.<\/p>\n<p>Choose this route when you already have OTP logic, for example from a framework or an older provider, and you only want to change who sends the SMS.<\/p>\n<h2>Option 3: DLT Manual API<\/h2>\n<p>With <a href=\"\/help\/dlt-manual-api-guide\/\">DLT Manual<\/a> you send the final SMS text, with the OTP already filled in, plus your DLT Entity ID and Template ID:<\/p>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/www.fast2sms.com\/dev\/bulkV2\" \\\n  -H \"authorization: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"route\":\"dlt_manual\",\"sender_id\":\"YOURID\",\"message\":\"Your OTP is 482913 for login.\",\"entity_id\":\"YOUR_ENTITY_ID\",\"template_id\":\"YOUR_TEMPLATE_ID\",\"numbers\":\"9999999999\"}'<\/code><\/pre>\n<p>Fast2SMS does not check your text against the DLT template. If the text, entity or template does not match what is approved at DLT, the operator rejects the SMS, and such failures are not refunded. If you leave out the IDs, Fast2SMS tries to match the text with templates saved in your DLT Manager. When nothing matches you get &#8220;Add template in panel before using this api without template_id&#8221;.<\/p>\n<div class=\"f2s-note f2s-note--warn\">With the DLT SMS and DLT Manual APIs, your app is responsible for OTP safety: random codes, short expiry, a limit on wrong attempts and a limit on resends. Smart OTP does these for you.<\/div>\n<h2>How to start with Smart OTP<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Get your SMS or WhatsApp template approved<\/h3>\n<p>For SMS, add your Entity ID, Sender ID and an OTP content template with at least one variable in <strong>DLT Manager<\/strong>. For WhatsApp, connect your number in WhatsApp Manager and get an Authentication or Utility template approved.<\/p>\n<\/li>\n<li>\n<h3>Create a Smart OTP template<\/h3>\n<p>Open Smart OTP, click <strong>OTP Template List<\/strong>, then <strong>Add OTP Template<\/strong>. Pick the channel, the template and the variable that carries the OTP, and click <strong>Assign OTP Template<\/strong>. Copy the <strong>OTP ID<\/strong> from the new card. Step-by-step help is in the <a href=\"\/help\/smart-otp-setup-guide-fast2sms\/\">Smart OTP setup guide<\/a>.<\/p>\n<\/li>\n<li>\n<h3>Copy your API key<\/h3>\n<p>Go to <strong>API Key<\/strong> under UTILITY. Click <strong>View<\/strong> to see the key. An OTP is sent to your account mobile to confirm it is you. Keep <strong>API Access<\/strong> switched on.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-7-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"API Key page with the masked Authorization Key, View and Reset buttons, and the API Access switch turned on\"><figcaption>Your Authorization Key works for Smart OTP, DLT SMS and DLT Manual.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Call Send OTP and Verify OTP from your server<\/h3>\n<p>Use the examples above, or click <strong>Sample Code<\/strong> on the template card for ready code in cURL, PHP, Node.js or Python. Keep the API key on your server. Never put it inside a mobile app or website JavaScript.<\/p>\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 app<\/strong><p>Smart OTP sends on SMS and WhatsApp with fallback, and checks the code for you.<\/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 OTPs cost<\/h2>\n<p>Every OTP is charged from your wallet. A Smart OTP on SMS costs your plan&#8217;s SMS rate times the number of SMS parts. A Smart OTP on WhatsApp costs the WhatsApp Authentication or Utility rate, depending on the template. Resends, fallback messages and test OTPs from the panel are charged as separate messages. DLT SMS and DLT Manual OTPs cost the same as any other DLT SMS on your plan. See the current rates on the <a href=\"https:\/\/www.fast2sms.com\/bulk-sms-pricing\">SMS pricing page<\/a> and the <a href=\"https:\/\/www.fast2sms.com\/whatsapp-pricing\">WhatsApp pricing page<\/a>.<\/p>\n<h2>Common problems and fixes<\/h2>\n<h3>&#8220;Invalid authorization key&#8221; on the OTP API<\/h3>\n<p>The key is wrong, was reset, or has &#8220;Bearer&#8221; or extra spaces in front of it. Copy it again from <strong>API Key<\/strong> and send it as the <code>authorization<\/code> header.<\/p>\n<h3>&#8220;Invalid OTP ID&#8221;<\/h3>\n<p>The OTP ID is not in the account that owns the API key, or the template was deleted. Copy the ID from <strong>OTP Template List<\/strong> and use the same account&#8217;s key.<\/p>\n<h3>&#8220;Invalid Message ID&#8221; or &#8220;Invalid Sender ID&#8221; on the DLT SMS API<\/h3>\n<p>You sent the 19-digit DLT Template ID instead of the Message ID, the template is not linked to that sender, or the sender ID case does not match. Check the card in DLT Manager.<\/p>\n<h3>The API said &#8220;sent&#8221; but the user got nothing<\/h3>\n<p>A success reply means the request was accepted, not delivered. Check the request ID in the delivery report. For Smart OTP, add a fallback on the other channel so a failed SMS can still reach the user on WhatsApp.<\/p>\n<h3>Verify says &#8220;OTP not found or already verified&#8221;<\/h3>\n<p>Verify checks only the newest unverified OTP for that number. If the user asked for a new OTP and typed the old one, it fails. Use Resend, which repeats the same code, instead of sending a fresh OTP each time.<\/p>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Does Fast2SMS have an OTP verify API?<\/h3>\n<p>Yes. Smart OTP has a Verify OTP call. You send the mobile number and the code the user typed, and Fast2SMS answers &#8220;OTP verified successfully&#8221; or the reason it failed. No OTP ID is needed for verify.<\/p>\n<h3>Can I send OTP SMS without DLT registration?<\/h3>\n<p>For SMS, no. Every OTP SMS in India must go through a DLT-approved sender and template. If you do not have DLT yet, you can send OTPs on WhatsApp through Smart OTP with an approved Authentication or Utility template.<\/p>\n<h3>Can I use my own OTP value with Smart OTP?<\/h3>\n<p>Yes. Pass it in the <code>otp<\/code> field, up to 10 characters. Fast2SMS still sends it and checks it on verify.<\/p>\n<h3>Can I send OTP on WhatsApp and SMS with one API?<\/h3>\n<p>Yes. A Smart OTP template can be SMS or WhatsApp, with an optional fallback on the other channel. Your code calls the same Send OTP endpoint either way.<\/p>\n<h3>Which OTP API is fastest?<\/h3>\n<p>Smart OTP is sent on a priority route, which is why we recommend it for login and signup OTPs. Actual delivery time also depends on the operator and the user&#8217;s phone.<\/p>\n<h3>Can I call the OTP API from my Android app or website JavaScript?<\/h3>\n<p>Do not do that. Anyone could read your API key from the app or the page. Call Fast2SMS from your own server, and let your app talk to your server.<\/p>\n<h3>Do OTP sends show in API Logs?<\/h3>\n<p>Yes. Every call made with your key appears in <strong>API Logs<\/strong> under Account Settings for 7 days, with the request, the response and any error.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Start with Smart OTP today<\/strong><p>Create your OTP template, copy the OTP ID and send your first OTP in minutes.<\/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\/smart-otp-setup-guide-fast2sms\/\">Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback<\/a><\/li>\n<li><a href=\"\/help\/how-to-send-dlt-sms-from-fast2sms-panel\/\">How to send DLT SMS from the Fast2SMS panel<\/a><\/li>\n<li><a href=\"\/help\/dlt-manager-entity-sender-template-guide\/\">DLT Manager: add your entity, sender ID and templates<\/a><\/li>\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=\"https:\/\/www.fast2sms.com\/help\/how-to-get-dlt-template-id-for-otp-and-transactional-sms\/\">How to get DLT Template ID for OTP and transactional SMS<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/otp-sms\">Fast2SMS OTP SMS<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Fast2SMS gives you three ways to send an OTP by API: Smart OTP, the DLT SMS API and the DLT Manual API. Smart OTP is the one we recommend. It sends the OTP on SMS or WhatsApp on a priority route, can fall back to the other channel, and checks the code for you. This [&hellip;]<\/p>\n","protected":false},"featured_media":17980,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-17988","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>OTP API: Smart OTP vs DLT SMS vs DLT Manual | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Compare the Fast2SMS OTP API options: Smart OTP with verify and WhatsApp fallback, DLT SMS and DLT Manual. See examples, setup steps and which one to use.\" \/>\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\/fast2sms-otp-api-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OTP API: Smart OTP vs DLT SMS vs DLT Manual | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Compare the Fast2SMS OTP API options: Smart OTP with verify and WhatsApp fallback, DLT SMS and DLT Manual. See examples, setup steps and which one to use.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/\" \/>\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-18T18:14:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T19:18:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-5-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\\\/fast2sms-otp-api-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"Fast2SMS OTP API: Smart OTP vs DLT SMS vs DLT Manual, which to use\",\"datePublished\":\"2026-11-18T18:14:07+00:00\",\"dateModified\":\"2026-11-18T19:18:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/\"},\"wordCount\":1922,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-5-scaled.webp\",\"articleSection\":[\"API\",\"OTP\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/\",\"name\":\"OTP API: Smart OTP vs DLT SMS vs DLT Manual | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-5-scaled.webp\",\"datePublished\":\"2026-11-18T18:14:07+00:00\",\"dateModified\":\"2026-11-18T19:18:50+00:00\",\"description\":\"Compare the Fast2SMS OTP API options: Smart OTP with verify and WhatsApp fallback, DLT SMS and DLT Manual. See examples, setup steps and which one to use.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-5-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-5-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, number or sender ID, template ID and fallback\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/fast2sms-otp-api-guide\\\/#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\":\"Fast2SMS OTP API: Smart OTP vs DLT SMS vs DLT Manual, which to use\"}]},{\"@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":"OTP API: Smart OTP vs DLT SMS vs DLT Manual | Fast2SMS","description":"Compare the Fast2SMS OTP API options: Smart OTP with verify and WhatsApp fallback, DLT SMS and DLT Manual. See examples, setup steps and which one to use.","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\/fast2sms-otp-api-guide\/","og_locale":"en_US","og_type":"article","og_title":"OTP API: Smart OTP vs DLT SMS vs DLT Manual | Fast2SMS","og_description":"Compare the Fast2SMS OTP API options: Smart OTP with verify and WhatsApp fallback, DLT SMS and DLT Manual. See examples, setup steps and which one to use.","og_url":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T18:14:07+00:00","article_modified_time":"2026-11-18T19:18:50+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-5-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\/fast2sms-otp-api-guide\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"Fast2SMS OTP API: Smart OTP vs DLT SMS vs DLT Manual, which to use","datePublished":"2026-11-18T18:14:07+00:00","dateModified":"2026-11-18T19:18:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/"},"wordCount":1922,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-5-scaled.webp","articleSection":["API","OTP"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/","url":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/","name":"OTP API: Smart OTP vs DLT SMS vs DLT Manual | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-5-scaled.webp","datePublished":"2026-11-18T18:14:07+00:00","dateModified":"2026-11-18T19:18:50+00:00","description":"Compare the Fast2SMS OTP API options: Smart OTP with verify and WhatsApp fallback, DLT SMS and DLT Manual. See examples, setup steps and which one to use.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-5-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-5-scaled.webp","width":2560,"height":1600,"caption":"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, number or sender ID, template ID and fallback"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/fast2sms-otp-api-guide\/#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":"Fast2SMS OTP API: Smart OTP vs DLT SMS vs DLT Manual, which to use"}]},{"@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\/17988","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=17988"}],"version-history":[{"count":1,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/17988\/revisions"}],"predecessor-version":[{"id":19324,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/17988\/revisions\/19324"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/17980"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=17988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=17988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=17988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}