{"id":18461,"date":"2026-11-19T00:01:55","date_gmt":"2026-11-18T18:31:55","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/"},"modified":"2026-11-19T02:00:46","modified_gmt":"2026-11-18T20:30:46","slug":"avoid-duplicate-sms-api-retries","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/","title":{"rendered":"Avoid duplicate SMS and OTPs with the Fast2SMS API: safe retries and timeouts"},"content":{"rendered":"<p>Duplicate SMS usually come from your own code, not from Fast2SMS: a request times out, your app retries it, and both requests are sent and charged. The Fast2SMS SMS API has no idempotency key, so the safe pattern is to check whether the first request was accepted before you send again. This guide shows how to retry safely, where to look up a request, and which Fast2SMS settings help against duplicates.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Send reliably from your app<\/strong><p>Use the Fast2SMS API with request IDs, API Logs and webhooks to track every message you send.<\/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>Why duplicates happen<\/h2>\n<ul>\n<li><strong>Client timeouts:<\/strong> your HTTP client gives up before our answer arrives. The request may already be accepted, so a blind retry sends a second message.<\/li>\n<li><strong>Retry loops:<\/strong> code that retries on any error, including errors that mean &#8220;accepted&#8221; or &#8220;refused for good&#8221;.<\/li>\n<li><strong>Double clicks and double jobs:<\/strong> a form submitted twice, or two workers picking the same job from a queue.<\/li>\n<li><strong>Duplicate numbers in one request:<\/strong> the same mobile listed twice in a file or a <code>\/dev\/custom<\/code> call.<\/li>\n<\/ul>\n<p>Each accepted request is charged, so duplicates cost money and annoy customers. They also hurt DLT and WhatsApp quality when customers complain.<\/p>\n<h2>Read the response before you retry<\/h2>\n<p>Every send API answers with JSON. Decide on the <code>return<\/code> field and the <code>request_id<\/code>, not only on the HTTP code.<\/p>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>What you got<\/th>\n<th>What it means<\/th>\n<th>Retry?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>\"return\": true<\/code> with a <code>request_id<\/code><\/td>\n<td>Accepted. The message is queued.<\/td>\n<td>No. Save the request_id.<\/td>\n<\/tr>\n<tr>\n<td><code>\"return\": false<\/code> with a status_code such as 406, 411, 412, 424<\/td>\n<td>Refused. Nothing was sent.<\/td>\n<td>Not until you fix the cause. The same request will fail again.<\/td>\n<\/tr>\n<tr>\n<td>416 &#8220;You don&#8217;t have sufficient wallet balance&#8221;<\/td>\n<td>Refused. This one can come back with HTTP 200, so always read <code>return<\/code>.<\/td>\n<td>Only after a recharge.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;Please wait N seconds before requesting a new OTP&#8221; (<a href=\"\/help\/smart-otp-setup-guide-fast2sms\/\">Smart OTP<\/a>)<\/td>\n<td>Refused by your resend wait time.<\/td>\n<td>No. Use the Resend OTP API after the wait.<\/td>\n<\/tr>\n<tr>\n<td>No answer, timeout, connection reset<\/td>\n<td>Unknown. The request may or may not have been accepted.<\/td>\n<td>Only after you check, as below.<\/td>\n<\/tr>\n<tr>\n<td>HTTP 5xx<\/td>\n<td>Server error. You cannot be sure whether the request was accepted.<\/td>\n<td>Check first, then retry once with a delay.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"f2s-note\">Give your HTTP client enough time. A 30-second timeout is a sensible start. Very short timeouts cause most &#8220;unknown&#8221; results.<\/div>\n<h2>How to check if a request went through<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Search API Logs<\/h3>\n<p>Open <strong>Account Setting<\/strong> &gt; <strong>API Logs<\/strong>. Every call made with your <a href=\"\/help\/api-key-find-reset\/\">API key<\/a> is listed with the endpoint, HTTP code, time and the response. Search by mobile number, request ID, IP or endpoint. If your call is listed with a <code>request_id<\/code> and Success, it was accepted. API logs are kept for 7 days.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"API Logs list with OTP\/SEND, BULKV2 and WHATSAPP requests showing endpoint, response time, HTTP code, IP, response text and Success or Failed status\"><figcaption>API Logs shows each call and its result.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Filter by time and status<\/h3>\n<p>Click the filter button to narrow the list by date range, status, method, HTTP code, response time or IP. Choose the minute of your timeout to find the call quickly.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-filter-modal-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Filter API Logs window with date range, status, method, HTTP code, response time and IP address options\"><figcaption>Narrow the logs to the time of the timeout.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Check the charge<\/h3>\n<p>In <strong>Transaction History<\/strong>, filter by <strong>Request ID<\/strong> to see if that send was charged. A charge means the message was processed.<\/p>\n<\/li>\n<li>\n<h3>Retry only if nothing is there<\/h3>\n<p>If the call is not in <a href=\"\/help\/api-logs-fast2sms\/\">API Logs<\/a> and there is no charge, it is safe to send again. Note that calls with a wrong or missing API key are not logged at all.<\/p>\n<\/li>\n<\/ol>\n<h2>Make your own sends idempotent<\/h2>\n<p>The SMS API does not take an idempotency key, so keep the protection in your system:<\/p>\n<ol>\n<li><strong>Give each message your own unique ID<\/strong>, for example the order ID plus the message type, and save it with the status &#8220;sending&#8221; before you call the API.<\/li>\n<li><strong>Pass the same ID in <code>udf1<\/code><\/strong>. It is stored with the message and comes back in <a href=\"\/help\/fast2sms-webhooks-setup-delivery-reports\/\">webhooks<\/a>, so you can link reports to your record.<\/li>\n<li><strong>Save the <code>request_id<\/code><\/strong> as soon as you get it and mark the record &#8220;sent&#8221;.<\/li>\n<li><strong>Before any retry<\/strong>, check your record. If it already has a request_id, do not send again.<\/li>\n<li><strong>Use a database unique key<\/strong> on your message ID so two workers cannot create the same send.<\/li>\n<\/ol>\n<pre><code class=\"language-python\">import requests\n\ndef send_once(db, msg_id, payload):\n    row = db.get(msg_id)\n    if row and row.get(\"request_id\"):\n        return row[\"request_id\"]          # already sent, never send twice\n\n    db.save(msg_id, status=\"sending\")\n    payload[\"udf1\"] = msg_id\n    try:\n        r = requests.post(\n            \"https:\/\/www.fast2sms.com\/dev\/bulkV2\",\n            headers={\"authorization\": \"YOUR_API_KEY\"},\n            json=payload,\n            timeout=30,\n        )\n        data = r.json()\n    except requests.RequestException:\n        db.save(msg_id, status=\"unknown\")  # check API Logs before retrying\n        return None\n\n    if data.get(\"return\") is True:\n        db.save(msg_id, status=\"sent\", request_id=data[\"request_id\"])\n        return data[\"request_id\"]\n\n    db.save(msg_id, status=\"failed\", error=data.get(\"message\"))\n    return None<\/code><\/pre>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Track every message by request ID<\/strong><p>Get delivery reports on your URL with Fast2SMS webhooks and match them to your own records with udf1.<\/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>Smart OTP: use Resend, not a second Send<\/h2>\n<ul>\n<li>Each call to <strong>Send OTP<\/strong> creates a new OTP and cancels every older unverified OTP for that mobile. Calling Send twice gives your user two different codes, and only the newest works.<\/li>\n<li><strong>Resend OTP<\/strong> sends the same code again. It works within 10 minutes of the first send and up to 5 sends in total. Each resend is charged.<\/li>\n<li>The <strong>SMS Resend \/ Time Limit<\/strong> in <strong>OTP Settings<\/strong> blocks a new send to the same number and OTP ID until the wait is over. It also stops accidental double sends.<\/li>\n<li>Disable the &#8220;Send OTP&#8221; button in your app after one click until the API answers.<\/li>\n<\/ul>\n<h2>Duplicate numbers inside one request<\/h2>\n<p>Under <strong>Account Setting<\/strong> &gt; <strong>Security Setting<\/strong>, the <strong>Duplicate Number<\/strong> switch reads &#8220;Allow duplicate numbers from Excel &amp; Custom APIs&#8221;. Keep it off and duplicate numbers from Excel files and custom APIs are removed automatically. Turn it on only if you really need to send two different messages to the same number in one request. Changing it asks for your password.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/settings-security-hd-2-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Security Setting page with switches for OTP Masking, 2F Authentication and Duplicate Number, which allows duplicate numbers from Excel and Custom APIs\"><figcaption>The Duplicate Number switch in Security Setting.<\/figcaption><\/figure>\n<p>From the panel, the <strong>Message Preview &amp; Confirmation<\/strong> popup shows duplicate numbers separately before you send, and they are not charged.<\/p>\n<h2>Webhooks can also arrive twice<\/h2>\n<p>If your server is slow or returns an error, Fast2SMS retries the webhook, and you can resend a log row by hand. Your webhook receiver should update the record that matches <code>request_id<\/code> and <code>mobile<\/code>, never insert a new one, so a repeated report changes nothing.<\/p>\n<h2>Common problems and fixes<\/h2>\n<h3>My customer got the same SMS twice<\/h3>\n<p>Search API Logs for the mobile number. Two calls means your system sent twice. Check your retry logic and job queue. One call with the number listed twice means a duplicate in your list.<\/p>\n<h3>My app shows a timeout but the SMS was delivered<\/h3>\n<p>The request was accepted before your client gave up. Increase the timeout and check API Logs before retrying.<\/p>\n<h3>The user got two OTPs and the first one does not work<\/h3>\n<p>Your app called Send OTP twice. Only the newest OTP is valid. Use Resend OTP for &#8220;send again&#8221; buttons.<\/p>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Does the Fast2SMS SMS API support an idempotency key?<\/h3>\n<p>No. Keep your own unique message ID, pass it in <code>udf1<\/code>, and check your records and API Logs before retrying.<\/p>\n<h3>Am I charged for duplicate requests?<\/h3>\n<p>Yes. Each accepted request is a separate send and is charged. Duplicate numbers inside one panel send are removed before charging.<\/p>\n<h3>How do I know if a timed-out request was sent?<\/h3>\n<p>Search API Logs by mobile number or time. If the call shows Success with a request_id, it was accepted. You can also filter Transaction History by request ID.<\/p>\n<h3>Does Fast2SMS block the same SMS to the same number?<\/h3>\n<p>Not for DLT SMS. The same template can be sent to the same number again, so the protection must be in your code.<\/p>\n<h3>How long are API logs kept?<\/h3>\n<p>7 days. Export them from <strong>Account Setting<\/strong> &gt; <strong>Export<\/strong> if you need them longer.<\/p>\n<h3>Should I retry on HTTP 5xx?<\/h3>\n<p>Check API Logs first, then retry once after a short delay. Do not retry in a tight loop.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Build on the Fast2SMS API<\/strong><p>Send SMS, Smart OTP, WhatsApp, RCS and voice calls from your app with full logs and delivery reports.<\/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\/remove-duplicate-invalid-numbers-bulk-sms\/\">How to remove duplicate and invalid numbers before sending bulk SMS<\/a><\/li>\n<li><a href=\"\/help\/sms-request-id-find-message\/\">What is a Request ID in Fast2SMS and how to use it<\/a><\/li>\n<li><a href=\"\/help\/smart-otp-resend-otp-api\/\">Fast2SMS Resend OTP API: same OTP, 10-minute window, 5 sends<\/a><\/li>\n<li><a href=\"\/help\/fast2sms-api-error-codes\/\">Fast2SMS API error codes: what each one means<\/a><\/li>\n<li><a href=\"\/help\/webhook-payload-fields\/\">Webhook payload fields and sample JSON<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Duplicate SMS usually come from your own code, not from Fast2SMS: a request times out, your app retries it, and both requests are sent and charged. The Fast2SMS SMS API has no idempotency key, so the safe pattern is to check whether the first request was accepted before you send again. This guide shows how [&hellip;]<\/p>\n","protected":false},"featured_media":18456,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,13],"tags":[],"class_list":["post-18461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-bulk-sms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Avoid Duplicate SMS: Safe API Retries | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Stop duplicate SMS and OTPs from Fast2SMS API retries: read the response, check API Logs after a timeout, use udf1 and request IDs, and use Resend 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\/avoid-duplicate-sms-api-retries\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Avoid Duplicate SMS: Safe API Retries | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Stop duplicate SMS and OTPs from Fast2SMS API retries: read the response, check API Logs after a timeout, use udf1 and request IDs, and use Resend OTP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/\" \/>\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:31:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T20:30:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-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\\\/avoid-duplicate-sms-api-retries\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"Avoid duplicate SMS and OTPs with the Fast2SMS API: safe retries and timeouts\",\"datePublished\":\"2026-11-18T18:31:55+00:00\",\"dateModified\":\"2026-11-18T20:30:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/\"},\"wordCount\":1332,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-logs-hd-6-scaled.webp\",\"articleSection\":[\"API\",\"Bulk SMS\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/\",\"name\":\"Avoid Duplicate SMS: Safe API Retries | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-logs-hd-6-scaled.webp\",\"datePublished\":\"2026-11-18T18:31:55+00:00\",\"dateModified\":\"2026-11-18T20:30:46+00:00\",\"description\":\"Stop duplicate SMS and OTPs from Fast2SMS API retries: read the response, check API Logs after a timeout, use udf1 and request IDs, and use Resend OTP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-logs-hd-6-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-logs-hd-6-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"API Logs list with OTP\\\/SEND, BULKV2 and WHATSAPP requests showing endpoint, response time, HTTP code, IP, response text and Success or Failed status\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/avoid-duplicate-sms-api-retries\\\/#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\":\"Avoid duplicate SMS and OTPs with the Fast2SMS API: safe retries and timeouts\"}]},{\"@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":"Avoid Duplicate SMS: Safe API Retries | Fast2SMS","description":"Stop duplicate SMS and OTPs from Fast2SMS API retries: read the response, check API Logs after a timeout, use udf1 and request IDs, and use Resend 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\/avoid-duplicate-sms-api-retries\/","og_locale":"en_US","og_type":"article","og_title":"Avoid Duplicate SMS: Safe API Retries | Fast2SMS","og_description":"Stop duplicate SMS and OTPs from Fast2SMS API retries: read the response, check API Logs after a timeout, use udf1 and request IDs, and use Resend OTP.","og_url":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T18:31:55+00:00","article_modified_time":"2026-11-18T20:30:46+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-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\/avoid-duplicate-sms-api-retries\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"Avoid duplicate SMS and OTPs with the Fast2SMS API: safe retries and timeouts","datePublished":"2026-11-18T18:31:55+00:00","dateModified":"2026-11-18T20:30:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/"},"wordCount":1332,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-scaled.webp","articleSection":["API","Bulk SMS"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/","url":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/","name":"Avoid Duplicate SMS: Safe API Retries | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-scaled.webp","datePublished":"2026-11-18T18:31:55+00:00","dateModified":"2026-11-18T20:30:46+00:00","description":"Stop duplicate SMS and OTPs from Fast2SMS API retries: read the response, check API Logs after a timeout, use udf1 and request IDs, and use Resend OTP.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-scaled.webp","width":2560,"height":1600,"caption":"API Logs list with OTP\/SEND, BULKV2 and WHATSAPP requests showing endpoint, response time, HTTP code, IP, response text and Success or Failed status"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/avoid-duplicate-sms-api-retries\/#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":"Avoid duplicate SMS and OTPs with the Fast2SMS API: safe retries and timeouts"}]},{"@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\/18461","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=18461"}],"version-history":[{"count":2,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/18461\/revisions"}],"predecessor-version":[{"id":19956,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/18461\/revisions\/19956"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/18456"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=18461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=18461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=18461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}