WhatsApp error 131047 (re-engagement message): more than 24 hours
The short answer: Error 131047 means more than 24 hours have passed since the contact last wrote to your number, so WhatsApp no longer accepts free-form messages. Send an approved template instead; once the contact replies, the 24-hour window opens again and free-form messages work.
Codes in this guide: 131047 · All WhatsApp error codes
How to fix it, step by step
- Check when the contact last wrote to the number. If it was more than 24 hours ago, the window is closed.
- Pick an approved template for the message (or create one and wait for Meta's approval).
- Send the template with its exact name and language, and one value per variable.
- Wait for the contact's reply: the reply opens a new 24-hour window.
- Inside the window, send free-form messages again (text, image, audio…).
Why it happens
Meta lets a business send free-form messages only inside the customer service window: the 24 hours after the contact's last message. «When the window closes, you can only send pre-approved template messages» (Meta, Send messages).
The window is per contact and per number. It is the contact's message that opens it; sending more messages from your side doesn't extend it.
In Coexistence
On a number in Coexistence (WhatsApp Business app and API on the same number), what the business sends from the app on the phone doesn't open or extend the window for the API. If the contact hasn't written in the last 24 hours, the API still needs a template. More in WhatsApp errors in Coexistence.
What the error looks like
This is how the Cloud API returns it (the details text is Meta's, from its list of error codes):
{
"error": {
"message": "(#131047) …",
"type": "OAuthException",
"code": 131047,
"error_data": {
"messaging_product": "whatsapp",
"details": "More than 24 hours have passed since the recipient last replied to the sender number."
},
"fbtrace_id": "…"
}
}
The fix
The fix: send a template instead of a free-form message (Cloud API request body):
{
"messaging_product": "whatsapp",
"to": "5493511234567",
"type": "template",
"template": {
"name": "order_update",
"language": {
"code": "en_US"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "A-1042"
}
]
}
]
}
}
How to detect it by webhook
If you send through WAIA Connect, the failure arrives on your webhook as a message.status event. This is its data, with the explanation WAIA Connect adds:
{
"messageId": "wamid.HBgL…",
"connectMessageId": "msg_5d325780fe504d0f87eb45009d28ae4f",
"status": "failed",
"origin": "api",
"recipient": "5493511234567",
"timestamp": "2026-12-01T14:02:11.000Z",
"errors": [
{
"code": 131047
}
],
"stage": "send",
"metaCode": 131047,
"metaSubcode": null,
"explanation": {
"code": "131047",
"title": "Outside the 24-hour window",
"detail": "More than 24 h passed since that person's last message: outside that window Meta only allows an approved template.",
"action": "Use an approved template to restart the conversation; free text works again once the person replies.",
"category": "fixable",
"responsible": "customer",
"retryable": false,
"retryAfterSeconds": null,
"official": true,
"locale": "en",
"docsUrl": "https://waiaconnect.com/en/errors/131047"
}
}
How WAIA Connect handles it
WAIA Connect doesn't remove the window: it is Meta's rule, the same with any provider. It tells you which code Meta returned, in your language, with the next step, in the API response or on the message.status webhook, so your system can switch to a template without parsing Meta's text.
Create an account · All WhatsApp error codes
Frequently asked questions
Can I pay Meta to send free-form messages after 24 hours?
No. Outside the window Meta only accepts approved templates, whatever the provider.
Does a message I send from the WhatsApp Business app open the window?
No. The window opens with the contact's message. In Coexistence, your messages from the app don't open or extend it.
Should I retry a message that failed with 131047?
Not as it is: it will fail again. Send a template, or wait for the contact to write.
Which template category should I use?
The one that matches the content: utility for an update about something the contact asked for, marketing for promotions. Meta reviews the category.
Sources
- Meta: Error codes (consulted on )
- Meta: Send messages (consulted on )
- Meta: Pricing on the WhatsApp Business Platform (consulted on )
- Meta: Onboarding WhatsApp Business app users (Coexistence) (consulted on )
Connect your first number today
Meta-verified technology provider. Coexistence in one click.
Get started