Configure message time-to-live | Developer Documentation
Configure message time-to-live
Updated: Feb 27, 2026
If a message cannot be delivered to a WhatsApp user, delivery is retried for a period of time known as time-to-live (“TTL”), or the message validity period.
You can customize the default TTL for authentication and utility templates sent via Cloud API, and for marketing templates sent via Marketing Messages API for WhatsApp.
Set a TTL for all authentication templates, preferably equal to or less than your code expiration time, to ensure your customers only get a message when a code is still usable.
Defaults, min/max values, and compatibility table
Default TTL
10 minutes
30 days for authentication templates created before October 23, 2024
30 days
30 days
Compatibility
Cloud API
Cloud API only
Marketing Messages API for WhatsApp
Customizable range
30 seconds to 15 minutes
30 seconds to 12 hours
12 hours to 30 days
Customize the TTL
message_send_ttl_secondsPOST /<PHONE_NUMBER_ID>/message_templatesValid message_send_ttl_seconds property values
309003043200432002592000message_send_ttl_seconds-1Example request
curl 'https://graph.facebook.com/v21.0/102290129340398/message_templates' \ -H 'Authorization: Bearer EAAJB...' \ -H 'Content-Type: application/json' \ -d ' { "name": "test_template", "language": "en_US", "category": "MARKETING", "message_send_ttl_seconds": 120, "components": [ { "type": "BODY", "text": "Shop now through {{1}} and use code {{2}} to get {{3}} off of all merchandise.", "example": { "body_text": [ [ "the end of August","25OFF","25%" ] ] } }, { "type": "FOOTER", "text": "Use the buttons below to manage your marketing subscriptions" }, ] }'
Sample response
{ "id": "572279198452421", "status": "PENDING", "category": "MARKETING" }
When TTL is exceeded
TTL reset on automatic category updates
message_send_ttl_secondsnull