{"id":20915,"date":"2026-11-20T23:28:30","date_gmt":"2026-11-20T17:58:30","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/"},"modified":"2026-11-20T23:28:30","modified_gmt":"2026-11-20T17:58:30","slug":"whatsapp-otp-widget-for-website","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/","title":{"rendered":"WhatsApp OTP widget for your website: add login with WhatsApp OTP in 2 lines"},"content":{"rendered":"<p>The Fast2SMS <strong>WhatsApp OTP widget<\/strong> is a ready-made mobile verification box that sends the code to your visitor&#8217;s WhatsApp. You pick a WhatsApp OTP template in Smart OTP, list your websites and paste two lines of code on your page. There is no server to run and no API key on the website. The widget itself is free: you pay only for each OTP sent, at your normal Smart OTP rate.<\/p>\n<p>This guide is for site owners who want &#8220;login with WhatsApp OTP&#8221; or WhatsApp OTP verification on a signup, enquiry or cash on delivery page. For the general setup with SMS codes, see the <a href=\"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/\">free OTP widget for website<\/a> guide.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Verify visitors on WhatsApp<\/strong><p>Create a free Fast2SMS account, add a WhatsApp OTP template and put the widget on your website.<\/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>Before you start<\/h2>\n<ul>\n<li>A Fast2SMS account with wallet balance. Every OTP the widget sends is a real, charged message, including your tests.<\/li>\n<li>A WhatsApp Business number connected in Fast2SMS, with an approved <strong>authentication<\/strong> or <strong>utility<\/strong> template that carries the code. See <a href=\"https:\/\/www.fast2sms.com\/help\/create-whatsapp-template-fast2sms\/\">how to create a WhatsApp template<\/a>.<\/li>\n<li>Visitors with Indian mobile numbers. The widget accepts 10-digit numbers starting with 6 to 9, with +91 shown in front.<\/li>\n<\/ul>\n<h2>How to add a WhatsApp OTP widget to your website<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Make a WhatsApp OTP template in Smart OTP<\/h3>\n<p>In the panel, open <strong>Smart OTP<\/strong> &gt; <strong>OTP Template List<\/strong> and click <strong>Add OTP Template<\/strong>. Choose the WhatsApp channel, your number and your approved template. If you also have an approved DLT OTP template, add it as an SMS fallback, so the code still reaches people when WhatsApp delivery fails. Save it and the template gets an <strong>OTP ID<\/strong>. The full steps are in <a href=\"https:\/\/www.fast2sms.com\/help\/smart-otp-whatsapp-otp-template\/\">send OTP on WhatsApp with Smart OTP<\/a>. The same OTP ID also works with the <a href=\"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-verification-api\/\">WhatsApp OTP verification API<\/a>, so your app and your website can share one template.<\/p>\n<\/li>\n<li>\n<h3>Open New Widget and pick the WhatsApp OTP ID<\/h3>\n<p>In the Smart OTP sidebar, under <strong>OTP WIDGET<\/strong>, click <strong>New Widget<\/strong>. Type a <strong>Widget name<\/strong>, for example &#8220;WhatsApp login&#8221;. Then click <strong>Select OTP ID<\/strong>. The <strong>Select OTP Template<\/strong> pop-up shows a phone preview of each of your templates. Click the <strong>WhatsApp<\/strong> filter on the left to see only WhatsApp templates, and click the one you want.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-whatsapp-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Select OTP Template pop-up with the WhatsApp filter on, showing three Demo Traders WhatsApp OTP templates with their OTP IDs and phone previews\"><figcaption>The WhatsApp filter shows only your WhatsApp OTP templates (test account).<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Add your websites and create the widget<\/h3>\n<p>The template you picked becomes a card with a <strong>WA<\/strong> badge, the template name and a <strong>Change OTP ID<\/strong> button. The right side shows the WhatsApp message your visitors will get. In <strong>Websites<\/strong>, add each domain where the widget will show, one per line, for example demotraders.in and www.demotraders.in. Use *.example.com to cover all subdomains. On any other site the widget only shows &#8220;Mobile verification is not available on this page right now.&#8221;<\/p>\n<p>If your template has other variables besides the code, such as a name or an order number, turn on <strong>Template variables<\/strong> and give fixed values separated by |, the same way as the variables_values field of the API. Then click <strong>Create widget<\/strong>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-filled-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"New widget Setup tab with the name WhatsApp login, WhatsApp OTP ID c4d09b6e2a, websites demotraders.in and www.demotraders.in, and a WhatsApp message preview on the right\"><figcaption>Name, WhatsApp OTP ID and websites filled in. The preview shows the WhatsApp message.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Set the design and the limits<\/h3>\n<p>On the <strong>Design<\/strong> tab, set the <strong>Button colour<\/strong>, the <strong>Button text<\/strong> (default &#8220;Send OTP&#8221;) and, with <strong>Title and logo<\/strong> on, a title such as &#8220;Verify your mobile number&#8221; and a logo URL. The preview on the right changes as you type.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-wa-design-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Design tab of the WhatsApp login widget with button colour #12AA9E, button text Send OTP, Title and logo switched on and a live preview of the widget\"><figcaption>Colour, button text and title, with a live preview.<\/figcaption><\/figure>\n<p>On the <strong>Settings<\/strong> tab, <strong>Limits<\/strong> protect your wallet from bots: max spend per day and per month, max codes per day, per number per hour and per visitor per hour. A limit you leave off uses a safe default. The same tab can open a thank-you page after verification or send verified numbers to your webhook. See <a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-verify-token-webhook\/\">verify token and webhook<\/a>.<\/p>\n<\/li>\n<li>\n<h3>Test with your own number<\/h3>\n<p>After saving, the widget has six tabs: <strong>Setup<\/strong>, <strong>Design<\/strong>, <strong>Settings<\/strong>, <strong>Test<\/strong>, <strong>Install<\/strong> and <strong>Usage<\/strong>, plus a <strong>Widget on<\/strong> switch at the top right. Open <strong>Test<\/strong>. It runs the real widget and says &#8220;Try it with your own number. A real OTP is sent and charged.&#8221; Type your number, click <strong>Send OTP<\/strong> and check your WhatsApp. Click <strong>Reload<\/strong> to start again.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-wa-test-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Test tab of the WhatsApp login widget showing the live widget with title Verify your mobile number, a +91 mobile field, a Send OTP button and a Reload link\"><figcaption>The Test tab sends a real WhatsApp OTP to your number.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Install it on your page<\/h3>\n<p>Open <strong>Install<\/strong> &gt; <strong>Widget<\/strong> and click <strong>Copy<\/strong>. Paste the two lines on your page where the box should appear:<\/p>\n<pre><code class=\"language-html\">&lt;script src=\"https:\/\/www.fast2sms.com\/widget\/otp-js?v=1.0.5\" defer&gt;&lt;\/script&gt;\n&lt;div data-f2s-otp-widget=\"YOUR_WIDGET_KEY\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<p>The copied code already has your own widget key. The same tab has other ways to place it: <strong>Popup<\/strong>, <strong>Mobile field<\/strong>, <strong>Form<\/strong> and <strong>Server<\/strong>. See <a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-popup-button-mobile-field\/\">OTP widget popup button and mobile field<\/a>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-install-simple-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Install tab with the Widget sub-tab open, showing the script tag, the div with a widget key and a Copy button\"><figcaption>Copy the two lines from Install. The code is the same for SMS and WhatsApp widgets.<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<h2>What the visitor sees<\/h2>\n<p>On your page the visitor types the mobile number and clicks <strong>Send OTP<\/strong>. A short &#8220;I am human&#8221; check runs inside the widget, then the code goes to WhatsApp. The widget asks to &#8220;Enter the 6-digit code sent to&#8221; a masked number such as 90xxxxxx01, with a <strong>Change<\/strong> link, six code boxes, a <strong>Verify<\/strong> button and a &#8220;Resend code&#8221; timer. After the right code it shows &#8220;Mobile number verified&#8221; and a &#8220;Use a different number&#8221; link.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-whatsapp-hd.webp\" width=\"768\" height=\"468\" loading=\"lazy\" decoding=\"async\" alt=\"Sample Log in with WhatsApp page with the line We send a code to your WhatsApp, and the widget with a +91 mobile field and Send OTP button\"><figcaption>A sample &#8220;Log in with WhatsApp&#8221; page. The heading and the line above the widget are the site&#8217;s own text.<\/figcaption><\/figure>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-whatsapp-code-hd.webp\" width=\"768\" height=\"527\" loading=\"lazy\" decoding=\"async\" alt=\"The widget asking to enter the 6-digit code sent to 90xxxxxx01, with four digits typed, a Verify button and Resend code in 24s\"><figcaption>The visitor copies the code from WhatsApp into the six boxes.<\/figcaption><\/figure>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-whatsapp-verified-hd.webp\" width=\"768\" height=\"397\" loading=\"lazy\" decoding=\"async\" alt=\"The widget showing Mobile number verified with a green tick and a Use a different number link\"><figcaption>Verified. Your page now gets a one-time token for this number.<\/figcaption><\/figure>\n<div class=\"f2s-note\">The widget says &#8220;code sent to&#8221;, not &#8220;sent on WhatsApp&#8221;. Put one line above it on your page, like &#8220;We send a code to your WhatsApp&#8221;, so visitors know where to look. If your template has an SMS fallback, write &#8220;on WhatsApp or SMS&#8221;.<\/div>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Add WhatsApp login to your site<\/strong><p>Pick your WhatsApp OTP template, list your domain and paste two lines. The widget is free.<\/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>WhatsApp OTP or SMS OTP for your website<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Point<\/th>\n<th>WhatsApp OTP<\/th>\n<th>SMS OTP<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>What you need first<\/td>\n<td>A connected WhatsApp Business number and an approved authentication or utility template<\/td>\n<td>DLT registration, a sender ID and an approved DLT OTP template<\/td>\n<\/tr>\n<tr>\n<td>What the visitor needs<\/td>\n<td>WhatsApp on that mobile number<\/td>\n<td>Any phone that gets SMS<\/td>\n<\/tr>\n<tr>\n<td>How it looks<\/td>\n<td>A chat from your business name, often with a Copy code button<\/td>\n<td>An SMS from your DLT sender ID<\/td>\n<\/tr>\n<tr>\n<td>Filling the code<\/td>\n<td>Visitor copies it from the chat<\/td>\n<td>Phone SMS autofill can fill the boxes<\/td>\n<\/tr>\n<tr>\n<td>Backup<\/td>\n<td>SMS fallback, if set in the template<\/td>\n<td>WhatsApp fallback, if set in the template<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Pick WhatsApp when most of your customers use WhatsApp and you want the code in a chat that shows your business name. Pick SMS when you want to reach every phone, including people without WhatsApp. For most sites the safest choice is one template that tries one channel first and falls back to the other. Read <a href=\"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-vs-sms-otp\/\">WhatsApp OTP vs SMS OTP<\/a> for cost and reach, and <a href=\"https:\/\/www.fast2sms.com\/help\/multi-channel-otp-explained\/\">multi-channel OTP<\/a> for how fallback works. You can also make two widgets, one with each OTP ID.<\/p>\n<h2>What it costs<\/h2>\n<p>The widget has no widget fee, setup fee or monthly fee. Each code is charged from your Fast2SMS wallet at your normal Smart OTP rate for that channel, the same as the API. Test sends, resends and fallback messages are real messages too, so each one is charged. See the current rates on the <a href=\"https:\/\/www.fast2sms.com\/otp-sms\">Smart OTP page<\/a>.<\/p>\n<div class=\"f2s-note f2s-volume\"><p><strong>Sending in bulk?<\/strong> For high OTP volumes our team offers discounted rates. <a href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Talk to our team<\/a> or see <a href=\"https:\/\/www.fast2sms.com\/bulk-sms-pricing\">OTP pricing<\/a>.<\/p><\/div>\n<h2>Common problems and fixes<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>What you see<\/th>\n<th>What to do<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&#8220;Mobile verification is not available on this page right now.&#8221;<\/td>\n<td>Add the exact domain to Websites, with and without www. Check that the <strong>Widget on<\/strong> switch is on. Some site builders run custom code in their own frame on another domain; use their site-wide custom code option instead.<\/td>\n<\/tr>\n<tr>\n<td>The code does not arrive on WhatsApp<\/td>\n<td>The number may not use WhatsApp. Add an SMS fallback to the template and check the Delivery Report. More tips: <a href=\"https:\/\/www.fast2sms.com\/help\/otp-not-received-checklist\/\">OTP not received checklist<\/a>.<\/td>\n<\/tr>\n<tr>\n<td>The widget stopped sending for the day<\/td>\n<td>A daily or monthly spend cap was reached. My Widgets shows &#8220;Stopped today&#8221; and sending starts again after midnight IST, or raise the cap in Settings.<\/td>\n<\/tr>\n<tr>\n<td>The box does not load on a site with strict security headers<\/td>\n<td>If your site has a Content Security Policy, allow https:\/\/www.fast2sms.com in script-src and frame-src.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Is the WhatsApp OTP widget free?<\/h3>\n<p>Yes. Creating and using the widget is free. You pay only for each OTP sent, at your Smart OTP rate.<\/p>\n<h3>Can I add login with WhatsApp OTP to my website without coding?<\/h3>\n<p>Yes, you paste two lines of code. If a login or an account depends on the number, your server should also confirm the one-time f2s_token, or you can receive verified numbers on your webhook.<\/p>\n<h3>Can I show the WhatsApp OTP in a popup?<\/h3>\n<p>Yes. Use the <strong>Popup<\/strong> install option: your own button opens the widget in a popup, at the centre, top, bottom, a side or a corner of the page.<\/p>\n<h3>What if the visitor does not use WhatsApp?<\/h3>\n<p>Without a fallback the code will not reach them. Add an SMS fallback to the Smart OTP template so the same code goes by SMS.<\/p>\n<h3>Can I use a utility template instead of an authentication template?<\/h3>\n<p>Yes. Smart OTP accepts an approved WhatsApp authentication or utility template for OTPs.<\/p>\n<h3>How long is the code valid?<\/h3>\n<p>The code has 6 digits and is valid for 10 minutes. The visitor can ask for a new code after a 30-second wait.<\/p>\n<h3>Does my API key go into the website code?<\/h3>\n<p>No. The page only has your widget key. The widget runs in a frame from www.fast2sms.com and your page gets a one-time token and the masked number.<\/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 WhatsApp OTP<\/strong><p>Sign up free, connect your WhatsApp number and add the OTP widget to your website.<\/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=\"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/\">Free OTP widget for website<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/whatsapp-api\">WhatsApp Business API<\/a><\/li>\n<\/ul>\n<p>If you prefer to host the code yourself, see the <a href=\"https:\/\/www.fast2sms.com\/help\/otp-verification-widget-fast2sms\/\">OTP widget kits<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Fast2SMS WhatsApp OTP widget is a ready-made mobile verification box that sends the code to your visitor&#8217;s WhatsApp. You pick a WhatsApp OTP template in Smart OTP, list your websites and paste two lines of code on your page. There is no server to run and no API key on the website. The widget [&hellip;]<\/p>\n","protected":false},"featured_media":20906,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,24],"tags":[],"class_list":["post-20915","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-otp","category-whatsapp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WhatsApp OTP Widget for Website (Free) | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Add a free WhatsApp OTP widget to your website with 2 lines of code. Visitors verify their mobile number on WhatsApp, with SMS fallback. Pay only per OTP.\" \/>\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\/whatsapp-otp-widget-for-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WhatsApp OTP Widget for Website (Free) | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Add a free WhatsApp OTP widget to your website with 2 lines of code. Visitors verify their mobile number on WhatsApp, with SMS fallback. Pay only per OTP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/\" \/>\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-20T17:58:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-whatsapp-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\\\/whatsapp-otp-widget-for-website\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"WhatsApp OTP widget for your website: add login with WhatsApp OTP in 2 lines\",\"datePublished\":\"2026-11-20T17:58:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/\"},\"wordCount\":1697,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-new-otp-picker-whatsapp-hd-scaled.webp\",\"articleSection\":[\"OTP\",\"WhatsApp\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/\",\"name\":\"WhatsApp OTP Widget for Website (Free) | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-new-otp-picker-whatsapp-hd-scaled.webp\",\"datePublished\":\"2026-11-20T17:58:30+00:00\",\"description\":\"Add a free WhatsApp OTP widget to your website with 2 lines of code. Visitors verify their mobile number on WhatsApp, with SMS fallback. Pay only per OTP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-new-otp-picker-whatsapp-hd-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-new-otp-picker-whatsapp-hd-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"Select OTP Template pop-up with the WhatsApp filter on, showing three Demo Traders WhatsApp OTP templates with their OTP IDs and phone previews\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/whatsapp-otp-widget-for-website\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OTP\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WhatsApp OTP widget for your website: add login with WhatsApp OTP in 2 lines\"}]},{\"@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":"WhatsApp OTP Widget for Website (Free) | Fast2SMS","description":"Add a free WhatsApp OTP widget to your website with 2 lines of code. Visitors verify their mobile number on WhatsApp, with SMS fallback. Pay only per OTP.","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\/whatsapp-otp-widget-for-website\/","og_locale":"en_US","og_type":"article","og_title":"WhatsApp OTP Widget for Website (Free) | Fast2SMS","og_description":"Add a free WhatsApp OTP widget to your website with 2 lines of code. Visitors verify their mobile number on WhatsApp, with SMS fallback. Pay only per OTP.","og_url":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-20T17:58:30+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-whatsapp-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\/whatsapp-otp-widget-for-website\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"WhatsApp OTP widget for your website: add login with WhatsApp OTP in 2 lines","datePublished":"2026-11-20T17:58:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/"},"wordCount":1697,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-whatsapp-hd-scaled.webp","articleSection":["OTP","WhatsApp"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/","url":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/","name":"WhatsApp OTP Widget for Website (Free) | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-whatsapp-hd-scaled.webp","datePublished":"2026-11-20T17:58:30+00:00","description":"Add a free WhatsApp OTP widget to your website with 2 lines of code. Visitors verify their mobile number on WhatsApp, with SMS fallback. Pay only per OTP.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-whatsapp-hd-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-whatsapp-hd-scaled.webp","width":2560,"height":1600,"caption":"Select OTP Template pop-up with the WhatsApp filter on, showing three Demo Traders WhatsApp OTP templates with their OTP IDs and phone previews"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"OTP","item":"https:\/\/www.fast2sms.com\/help\/otp\/"},{"@type":"ListItem","position":3,"name":"WhatsApp OTP widget for your website: add login with WhatsApp OTP in 2 lines"}]},{"@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\/20915","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=20915"}],"version-history":[{"count":0,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/20915\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/20906"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=20915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=20915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=20915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}