{"id":19678,"date":"2026-11-19T01:29:08","date_gmt":"2026-11-18T19:59:08","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/"},"modified":"2026-11-19T01:29:08","modified_gmt":"2026-11-18T19:59:08","slug":"otp-widget-cloudflare-worker-fast2sms","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/","title":{"rendered":"OTP verification for static sites, Webflow and Wix with a Cloudflare Worker (Fast2SMS)"},"content":{"rendered":"<p>If your website has no server of its own (plain HTML on static hosting, Webflow or Wix), you can still add OTP verification. A small Cloudflare Worker becomes your OTP backend: it holds your Fast2SMS API key and calls Smart OTP, and your pages only load the widget and talk to the Worker. Visitors verify their mobile number by SMS or WhatsApp.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Add OTP verification to your static site<\/strong><p>Create a Smart OTP template, deploy the Worker and paste two lines into your site.<\/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<p class=\"f2s-kit-wrap\"><a class=\"f2s-kit\" href=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/fast2sms-otp-widget-cloudflare-worker.zip\" download><svg class=\"f2s-kit__icon\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"#7F56D9\" d=\"M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z\"\/><path fill=\"#FFFFFF\" d=\"M14 2v6h6\"\/><path fill=\"#FFFFFF\" d=\"M9 6h2v2H9zm2 2h2v2h-2zM9 10h2v2H9zm2 2h2v2h-2zm-2 2h4v4H9z\"\/><rect x=\"10\" y=\"15.4\" width=\"2\" height=\"1.6\" fill=\"#7F56D9\"\/><\/svg><span class=\"f2s-kit__text\"><strong>Download the Cloudflare Worker OTP widget kit (zip)<\/strong><span class=\"f2s-kit__meta\">fast2sms-otp-widget-cloudflare-worker.zip &middot; 48 KB<\/span><\/span><span class=\"f2s-kit__btn\">Download .zip<\/span><\/a><\/p>\n<div class=\"f2s-note f2s-note--warn\"><strong>Partly tested.<\/strong> We ran the Worker code in Node.js with a stand-in for the Workers runtime, against a mock copy of the Fast2SMS API: 47 of 47 browser and API checks passed. It has not yet been deployed on Cloudflare or run with wrangler, and the Workers KV store was not tested. Try it on a test page first.<\/div>\n<h2>Before you start<\/h2>\n<ul>\n<li>A Fast2SMS account with wallet balance, and an approved DLT OTP template (SMS) or WhatsApp Authentication\/Utility template.<\/li>\n<li>A Cloudflare account and Node.js on your computer (for the <code>wrangler<\/code> tool).<\/li>\n<li>A way to add custom code to your site: an HTML file, Webflow&#8217;s custom code, or Wix&#8217;s Embed HTML.<\/li>\n<\/ul>\n<h2>Set up the Worker and the widget<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Create a Smart OTP template and copy its OTP ID<\/h3>\n<p>In the panel, open <strong>Smart OTP<\/strong> &gt; <strong>OTP Template List<\/strong> and click <strong>Add OTP Template<\/strong>. On the <strong>SMS Channel<\/strong> tab, pick your DLT entity, sender and approved OTP template, then click the variable that should carry the code. For WhatsApp, use the <strong>WhatsApp Channel<\/strong> tab with an approved Authentication or Utility template. Tick <strong>SET FALLBACK TEMPLATE<\/strong> if you want the other channel as a backup, then click <strong>Assign OTP Template<\/strong>.<\/p>\n<p>Copy the 10-character <strong>OTP ID<\/strong> from the new card. It decides the channel, the template and the fallback for every code the widget sends.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-31-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Smart OTP Template list with SMS and WhatsApp template cards, each showing its OTP ID with a copy icon\"><figcaption>Each template card shows its 10-character OTP ID with a copy icon.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Copy your API key<\/h3>\n<p>Under <strong>Utility<\/strong> in the left menu, click <strong>API Key<\/strong>. Click <strong>View<\/strong> (the panel first asks for an OTP sent to your registered mobile) and copy the <strong>Authorization Key<\/strong>. Check that <strong>API Access<\/strong> is switched on. This key will live only in your backend&#8217;s settings, never in a page or an app.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-33-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>Copy the Authorization Key. API Access must be on.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Install wrangler and set the settings<\/h3>\n<p>Unzip the kit and run <code>npm install<\/code> (it installs wrangler), then <code>npx wrangler login<\/code>. In <code>wrangler.toml<\/code>, set the OTP ID and <strong>every<\/strong> origin your widget will run on:<\/p>\n<pre><code class=\"language-toml\">[vars]\nF2S_OTP_ID = \"YOUR_OTP_ID\"\nF2S_ALLOWED_ORIGINS = \"https:\/\/www.example.com,https:\/\/example.webflow.io\"\nF2S_RESEND_WAIT = \"30\"\nF2S_LIMIT_PER_NUMBER = \"5\"\nF2S_LIMIT_PER_IP = \"20\"\nF2S_MAX_VERIFY = \"5\"<\/code><\/pre>\n<p>Then add the two secrets. Wrangler asks you to paste each value. <strong>Never put them in <code>wrangler.toml<\/code><\/strong>, which is not secret.<\/p>\n<pre><code class=\"language-bash\">npx wrangler secret put FAST2SMS_API_KEY\nnpx wrangler secret put F2S_TOKEN_SECRET<\/code><\/pre>\n<\/li>\n<li>\n<h3>Deploy<\/h3>\n<p>Run <code>npx wrangler deploy<\/code>. You get a URL like <code>https:\/\/f2s-otp.YOUR-SUBDOMAIN.workers.dev<\/code>, or you can attach your own domain in Cloudflare. The Worker also serves the widget script and a demo page from its <code>public<\/code> folder.<\/p>\n<\/li>\n<li>\n<h3>Add the widget to your site<\/h3>\n<p>Use the full Worker URL in both lines:<\/p>\n<pre><code class=\"language-html\">&lt;script src=\"https:\/\/f2s-otp.YOUR-SUBDOMAIN.workers.dev\/f2s-otp-widget.min.js\" defer&gt;&lt;\/script&gt;\n&lt;div data-f2s-otp data-endpoint=\"https:\/\/f2s-otp.YOUR-SUBDOMAIN.workers.dev\/f2s-otp\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otp-widget-code-step-2x-6.webp\" width=\"388\" height=\"360\" loading=\"lazy\" decoding=\"async\" alt=\"The OTP widget after Send OTP: six code boxes, a Verify button and a Resend code timer\"><figcaption>The same box on any site: six code boxes and a resend timer.<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<h2>Where to paste the code<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Site builder<\/th>\n<th>Where<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Plain HTML<\/td>\n<td>Anywhere in the page.<\/td>\n<\/tr>\n<tr>\n<td>Webflow<\/td>\n<td>Page settings &gt; Custom code (before <code>&lt;\/body&gt;<\/code>) for the script, and an Embed element for the <code>&lt;div&gt;<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>Wix<\/td>\n<td>Wix runs embeds in an iframe, so put the script <strong>and<\/strong> the <code>&lt;div&gt;<\/code> together in one Embed HTML element, with the full <code>https:\/\/<\/code> Worker URL.<\/td>\n<\/tr>\n<tr>\n<td>Shopify<\/td>\n<td>The all-in-one kit has a theme section that uses this Worker. It has not been run on a real Shopify store yet.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Every page origin must be in <code>F2S_ALLOWED_ORIGINS<\/code>, written as <code>https:\/\/<\/code> plus the domain, with no path. If a site is missing, the widget shows &#8220;This page is not allowed to use this OTP service.&#8221;<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Get your OTP ID<\/strong><p>Set up a Smart OTP template on SMS or WhatsApp, with fallback, and put it in wrangler.toml.<\/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>Checking the token on a site with no server<\/h2>\n<p>After a correct code, the widget gives your page a signed token. The token only protects you when a server checks it. On a static site, your form usually posts to a form service that cannot check it, so a bot could skip the widget and post the form directly. The widget then only stops normal visitors.<\/p>\n<p>To <strong>enforce<\/strong> verification, post the form to a route in the same Worker (the kit has an example route, <code>\/demo-signup<\/code>), check the token there, then save or forward the data:<\/p>\n<pre><code class=\"language-javascript\">const v = await ep.verifyToken(form.get('f2s_token'), { mobile: form.get('phone') });\nif (v === null) return new Response('Mobile number not verified.', { status: 403 });\n\/\/ v.mobile is the verified 10-digit number: save the lead or forward it here<\/code><\/pre>\n<h2>Limits on Cloudflare<\/h2>\n<ul>\n<li><strong>Without KV, limits live in each Worker instance&#8217;s memory<\/strong>, so they are best-effort. For firmer limits, create a KV namespace (<code>npx wrangler kv namespace create F2S_KV<\/code>) and add its binding in <code>wrangler.toml<\/code>.<\/li>\n<li><strong>KV counters are not exact<\/strong> under parallel load. For a hard limit, add a Cloudflare WAF rate-limiting rule for the path <code>\/f2s-otp<\/code>, for example 10 requests per minute per IP.<\/li>\n<li><strong>Visitor IP:<\/strong> the Worker reads it from <code>CF-Connecting-IP<\/code>, which Cloudflare sets. Leave <code>F2S_TRUST_PROXY<\/code> off.<\/li>\n<li><strong>API Security:<\/strong> Workers usually do not have one fixed outgoing IP address, so if you switch on IP whitelisting in <strong>API Security<\/strong>, Fast2SMS may refuse the Worker&#8217;s calls. Check <strong>API Logs<\/strong> if sends fail.<\/li>\n<\/ul>\n<h2>Sending, resending and cost<\/h2>\n<p>The Worker checks the page&#8217;s origin, the <code>X-F2S-Widget<\/code> header, the resend wait and the limits before every paid call. A new code for a number cancels the older one. &#8220;Code sent&#8221; means Fast2SMS accepted the request; delivery shows in <strong>Smart OTP<\/strong> &gt; <strong>Delivery Report<\/strong>.<\/p>\n<p><strong>Resend<\/strong> sends the same code again, it does not make a new one. Fast2SMS allows it within 10 minutes of the first send, and up to 5 sends to one number in that time, counting the first.<\/p>\n<p>Every send and every resend is charged at your Smart OTP rate, and a fallback message on the second channel is charged too. Verify is free. The <strong>Test OTP<\/strong> button on a template card is also a real, charged send. See the current rates on the <a href=\"https:\/\/www.fast2sms.com\/otp-sms\">OTP SMS 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>Why<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&#8220;This page is not allowed to use this OTP service.&#8221;<\/td>\n<td>The page is on another domain<\/td>\n<td>Add its origin (<code>https:\/\/<\/code> plus the domain, no path) to <code>F2S_ALLOWED_ORIGINS<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;We could not send the code right now.&#8221;<\/td>\n<td>An account or setup problem. Your server log names it: <code>failed reason=...<\/code><\/td>\n<td><code>invalid_otp_id<\/code>: copy the OTP ID again, from the same account as the key. <code>insufficient_balance<\/code>: recharge with <strong>Add Amount<\/strong>. <code>template_inactive<\/code>: create a new OTP template. Auth error: check the key, switch on <strong>API Access<\/strong>, or whitelist the server IP in <strong>API Security<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;Could not reach the server.&#8221;<\/td>\n<td>Wrong Worker URL in <code>data-endpoint<\/code>, or the Worker is not deployed<\/td>\n<td>Open the Worker URL in a browser and check the browser console.<\/td>\n<\/tr>\n<tr>\n<td>Every request fails, the log lists settings<\/td>\n<td>A secret or the OTP ID is missing<\/td>\n<td>Set <code>F2S_OTP_ID<\/code> in <code>wrangler.toml<\/code> and both secrets with <code>wrangler secret put<\/code>, then deploy again.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;Please wait N seconds&#8230;&#8221;<\/td>\n<td>The resend wait: the widget&#8217;s own, or Fast2SMS&#8217;s<\/td>\n<td>Wait. Change <code>F2S_RESEND_WAIT<\/code>, or <strong>SMS Resend \/ Time Limit<\/strong> in <strong>OTP Settings<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;Too many requests&#8221;<\/td>\n<td>The per-number or per-IP limit was hit<\/td>\n<td>Wait an hour, or raise <code>F2S_LIMIT_PER_NUMBER<\/code> \/ <code>F2S_LIMIT_PER_IP<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>The code never arrives<\/td>\n<td>Sent is not the same as delivered<\/td>\n<td>Check <strong>Smart OTP<\/strong> &gt; <strong>Delivery Report<\/strong>, and use <strong>Test OTP<\/strong> on the template card.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The Worker&#8217;s log lines (masked numbers, never the OTP or the key) appear in Cloudflare&#8217;s Worker logs, or live with <code>npx wrangler tail<\/code>.<\/p>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Can I add OTP verification to Webflow or Wix without my own server?<\/h3>\n<p>Yes. The Cloudflare Worker is the server: it holds the API key and talks to Fast2SMS. Your Webflow or Wix page only loads the widget and calls the Worker.<\/p>\n<h3>Is it safe to put the Worker URL in my page?<\/h3>\n<p>Yes. The URL is public, but the API key is a Worker secret. The Worker only accepts calls from origins in <code>F2S_ALLOWED_ORIGINS<\/code>, and its limits run before any paid call.<\/p>\n<h3>Can I put the API key in wrangler.toml?<\/h3>\n<p>No. <code>wrangler.toml<\/code> is a normal file that often ends up in git. Use <code>npx wrangler secret put FAST2SMS_API_KEY<\/code>.<\/p>\n<h3>Does the Worker need a paid Cloudflare plan?<\/h3>\n<p>The kit does not need any paid Cloudflare feature, and KV is optional. Check Cloudflare&#8217;s current plan limits for your traffic.<\/p>\n<h3>I use Vercel or Netlify instead. Is there a kit?<\/h3>\n<p>Yes. The Vercel \/ Netlify function kit uses the same core code and the same widget.<\/p>\n<h3>Is verify charged?<\/h3>\n<p>No. Each send and each resend is charged; verify is free.<\/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 Fast2SMS Smart OTP<\/strong><p>Sign up and add mobile OTP verification to your static site today.<\/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<\/a><\/li>\n<li><a href=\"\/help\/otp-verification-signup-form\/\">OTP verification for signup forms<\/a><\/li>\n<li><a href=\"\/help\/otp-sms-pumping-fraud-protection\/\">OTP fraud and SMS pumping protection<\/a><\/li>\n<li><a href=\"\/help\/send-sms-from-website-form\/\">Send an SMS when someone fills your website form<\/a><\/li>\n<li><a href=\"\/help\/api-key-find-reset\/\">How to find, view and reset your Fast2SMS API key<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If your website has no server of its own (plain HTML on static hosting, Webflow or Wix), you can still add OTP verification. A small Cloudflare Worker becomes your OTP backend: it holds your Fast2SMS API key and calls Smart OTP, and your pages only load the widget and talk to the Worker. Visitors verify [&hellip;]<\/p>\n","protected":false},"featured_media":19646,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,25,5],"tags":[],"class_list":["post-19678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-integrations","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 Verification for Webflow, Wix, Static Sites | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Add OTP verification to a static site, Webflow or Wix with no server: a Cloudflare Worker holds your Fast2SMS key and the widget does the rest.\" \/>\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\/otp-widget-cloudflare-worker-fast2sms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OTP Verification for Webflow, Wix, Static Sites | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Add OTP verification to a static site, Webflow or Wix with no server: a Cloudflare Worker holds your Fast2SMS key and the widget does the rest.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-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-18T19:59:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-31-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\\\/otp-widget-cloudflare-worker-fast2sms\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"OTP verification for static sites, Webflow and Wix with a Cloudflare Worker (Fast2SMS)\",\"datePublished\":\"2026-11-18T19:59:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/\"},\"wordCount\":1466,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-31-scaled.webp\",\"articleSection\":[\"API\",\"Integrations\",\"OTP\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/\",\"name\":\"OTP Verification for Webflow, Wix, Static Sites | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-31-scaled.webp\",\"datePublished\":\"2026-11-18T19:59:08+00:00\",\"description\":\"Add OTP verification to a static site, Webflow or Wix with no server: a Cloudflare Worker holds your Fast2SMS key and the widget does the rest.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-fast2sms\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-31-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-31-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, sender or number, template ID and fallback\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-cloudflare-worker-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\":\"OTP verification for static sites, Webflow and Wix with a Cloudflare Worker (Fast2SMS)\"}]},{\"@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 Verification for Webflow, Wix, Static Sites | Fast2SMS","description":"Add OTP verification to a static site, Webflow or Wix with no server: a Cloudflare Worker holds your Fast2SMS key and the widget does the rest.","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\/otp-widget-cloudflare-worker-fast2sms\/","og_locale":"en_US","og_type":"article","og_title":"OTP Verification for Webflow, Wix, Static Sites | Fast2SMS","og_description":"Add OTP verification to a static site, Webflow or Wix with no server: a Cloudflare Worker holds your Fast2SMS key and the widget does the rest.","og_url":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T19:59:08+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-31-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\/otp-widget-cloudflare-worker-fast2sms\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"OTP verification for static sites, Webflow and Wix with a Cloudflare Worker (Fast2SMS)","datePublished":"2026-11-18T19:59:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/"},"wordCount":1466,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-31-scaled.webp","articleSection":["API","Integrations","OTP"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/","url":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/","name":"OTP Verification for Webflow, Wix, Static Sites | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-31-scaled.webp","datePublished":"2026-11-18T19:59:08+00:00","description":"Add OTP verification to a static site, Webflow or Wix with no server: a Cloudflare Worker holds your Fast2SMS key and the widget does the rest.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-fast2sms\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-31-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-31-scaled.webp","width":2560,"height":1600,"caption":"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, sender or number, template ID and fallback"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-cloudflare-worker-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":"OTP verification for static sites, Webflow and Wix with a Cloudflare Worker (Fast2SMS)"}]},{"@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\/19678","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=19678"}],"version-history":[{"count":0,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/19678\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/19646"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=19678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=19678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=19678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}