{"id":504,"date":"2025-05-11T13:16:52","date_gmt":"2025-05-11T13:16:52","guid":{"rendered":"https:\/\/smppcenter.com\/journal\/?p=504"},"modified":"2025-05-30T12:00:59","modified_gmt":"2025-05-30T12:00:59","slug":"whatsapp-business-api-templates-understanding-time-to-live-ttl","status":"publish","type":"post","link":"https:\/\/smppcenter.com\/journal\/whatsapp-business-api-templates-understanding-time-to-live-ttl\/","title":{"rendered":"\u23f3 WhatsApp Business API Templates: Understanding Time-To-Live (TTL)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"520\" src=\"https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/whatsapp-business-api-templates-understanding-time-to-live-ttl.webp\" alt=\"\" class=\"wp-image-510\" srcset=\"https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/whatsapp-business-api-templates-understanding-time-to-live-ttl.webp 920w, https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/whatsapp-business-api-templates-understanding-time-to-live-ttl-300x170.webp 300w, https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/whatsapp-business-api-templates-understanding-time-to-live-ttl-768x434.webp 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<p>In the world of real-time communication, timing is everything. Whether you\u2019re sending a one-time password (OTP), a shipment update, or a limited-time offer, it\u2019s critical that your message reaches your customer while it\u2019s still relevant. This is where Time-To-Live (TTL) in <strong><a href=\"https:\/\/smppcenter.com\/whatsapp_business_api\/\">WhatsApp Business API<\/a><\/strong> templates becomes important.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"125\" src=\"https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/image-1-1024x125.png\" alt=\"WhatsApp Templates Settings\" class=\"wp-image-509\" srcset=\"https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/image-1-1024x125.png 1024w, https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/image-1-300x37.png 300w, https:\/\/smppcenter.com\/journal\/wp-content\/uploads\/2025\/05\/image-1-768x94.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 What is TTL?<\/h2>\n\n\n\n<p>TTL, or Time-To-Live, refers to the duration WhatsApp will keep retrying to deliver a message to a user who is temporarily unreachable (for example, if their phone is off or they are out of network coverage). If the message is not delivered within this TTL window, it is dropped and will not be delivered later.<\/p>\n\n\n\n<p>In technical terms, TTL is also referred to as the message validity period.<\/p>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd27 Why is TTL Important?<\/h2>\n\n\n\n<p>Setting a suitable TTL ensures:<br>\u2022 Customers don\u2019t receive outdated or irrelevant messages.<br>\u2022 OTPs and other authentication messages are only delivered when the code is still valid.<br>\u2022 You avoid confusion and improve the user experience by sending timely information.<\/p>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcca TTL Defaults, Limits, and Compatibility<\/h2>\n\n\n\n<p>Here\u2019s a quick breakdown of TTL behavior by template type:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Template Type<\/th><th>Default TTL<\/th><th>Customizable Range<\/th><th>API Compatibility<\/th><\/tr><\/thead><tbody><tr><td>Authentication<\/td><td>10 minutes<\/td><td>30 seconds \u2013 15 minutes<\/td><td>Cloud API + On-Premise API<\/td><\/tr><tr><td>Utility<\/td><td>30 days<\/td><td>30 seconds \u2013 12 hours<\/td><td>Cloud API only<\/td><\/tr><tr><td>Marketing<\/td><td>30 days<\/td><td>12 hours \u2013 30 days<\/td><td>Marketing Messages (MM) Lite API<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\ud83d\uded1 Note: Authentication templates created before October 23, 2024, default to a 30-day TTL unless explicitly updated.<\/p>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u270d\ufe0f How to Set or Update TTL<\/h2>\n\n\n\n<p>To customize TTL, include the message_send_ttl_seconds parameter when creating or editing a template from the UI.<br>\u2022 TTL is defined in seconds<br>\u2022 You can use 1-second increments for fine-grained control<br>\u2022 TTL can be updated even on existing templates<\/p>\n\n\n\n<p><strong>\ud83d\udd22 Valid Ranges by Template Type:<\/strong><br>\u2022 Authentication: 30 to 900 seconds (30 seconds to 15 minutes)<br>\u2022 Utility: 30 to 43,200 seconds (30 seconds to 12 hours)<br>\u2022 Marketing: 43,200 to 2,592,000 seconds (12 hours to 30 days)<\/p>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcc9 What Happens When TTL Expires?<\/h2>\n\n\n\n<p>If a message cannot be delivered within the defined TTL:<br>\u2022 It is dropped (not delivered at all).<br>\u2022 You will not receive a messages.delivered webhook.<br>\u2022 There may be a small delay in receiving the final webhook confirming the drop, so it\u2019s good practice to include a slight buffer in your application logic.<\/p>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udfaf Best Practices<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2022   Always set a custom TTL for authentication templates, and match or stay below your OTP\/code expiration time.\n\u2022   Use short TTLs for critical utility updates like payment or delivery alerts.\n\u2022   For marketing messages, consider your campaign duration and user engagement window before setting TTL.<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcec In Summary<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Feature<\/th><th>Benefit<\/th><\/tr><\/thead><tbody><tr><td>Customizable TTL<\/td><td>Fine-tune delivery windows by template type<\/td><\/tr><tr><td>Prevents Irrelevance<\/td><td>Messages dropped if no longer timely<\/td><\/tr><tr><td>Flexible Integration<\/td><td>1-second granularity and API-based config<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Using TTL smartly ensures your WhatsApp messages are timely, relevant, and effective\u2014helping you build trust and deliver a better experience to your users.<\/p>\n\n\n\n<p class=\"has-text-align-center\">\u2e3b<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Read More Content:<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/smppcenter.com\/journal\/new-feature-announcement-accept-terms-checkbox-in-signup-form\/\">\u2705 New Feature Announcement: \u201cAccept Terms Checkbox\u201d in Signup Form<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/smppcenter.com\/journal\/consolidated-admin-alerts-tracking-new-user-signups\/\">\ud83c\udd95 SMPPCenter Version 7.1 Feature Release: Consolidated Admin Alerts for Tracking New User Signups<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/smppcenter.com\/journal\/append-text-action-enhanced-message-customization\/\">\ud83c\udd95 Feature Release: Append Text Action for Enhanced Message Customization<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/smppcenter.com\/journal\/random-replace-rule-normalization-dynamic-messaging\/\">New Feature Release: Random Replace Rule in Normalization for Dynamic Messaging<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/smppcenter.com\/journal\/introducing-dashboard-notification-for-resellers-coming-in-version-7-0\/\">\ud83c\udd95 Introducing Dashboard Notification for Resellers \u2013 Coming in Version 7.0!<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/smppcenter.com\/journal\/introducing-contact-form-integration-in-version-7-0\/\">\ud83c\udf89 Introducing Contact Form Integration in Version 7.0<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>In the world of real-time communication, timing is everything. Whether you\u2019re sending a one-time password (OTP), a shipment update, or a limited-time offer, it\u2019s critical that your message reaches your customer while it\u2019s still relevant. This is where Time-To-Live (TTL) in WhatsApp Business API templates becomes important. \u2e3b \u2705 What is TTL? TTL, or Time-To-Live, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":510,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[326,325,5,328,327,323,321,320,45,47,83,317,318,319,324,81,329,322],"class_list":["post-504","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","tag-api-integration","tag-authentication-messages","tag-bulk-sms","tag-dlt-compliance","tag-marketing-messages","tag-message-validity","tag-otp-delivery","tag-real-time-communication","tag-smpp-application","tag-smpp-sms","tag-sms-marketing","tag-smsgatewaycenter","tag-time-to-live","tag-ttl-in-messaging","tag-utility-messages","tag-whatsapp-business-api","tag-whatsapp-campaigns","tag-whatsapp-templates"],"_links":{"self":[{"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/posts\/504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/comments?post=504"}],"version-history":[{"count":0,"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/posts\/504\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/media\/510"}],"wp:attachment":[{"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/media?parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/categories?post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smppcenter.com\/journal\/wp-json\/wp\/v2\/tags?post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}