WhatsApp error 131051: unsupported message type
Error 131051 appears for an unsupported message type, on a send or on an inbound message. Learn to tell the two cases apart and handle each one.
Error 131051 has two faces, and mixing them up is what costs people time. Meta describes it in the error codes table as an unsupported message type and says to use a supported type. But the same number shows up in two places: on a send attempt the API refuses, and on the webhook of an inbound message the API cannot represent. The fix is different in each case.
What 131051 means
Short answer: 131051 means the Cloud API met a message type it does not support. On a send, the problem is in what you sent; on receipt, the problem is in what the contact sent and the API cannot express. Meta asks you to build error handling on the code and error_data.details, not on the title, because titles will eventually be deprecated.
On receipt, the webhook arrives with type set to unsupported and an errors array. In Meta's example for that webhook the error carries code 131051 with a detail saying the message type is currently not supported, and the unsupported object says which type it was (an edited message, in the example). There is also 131060, which reuses the same structure but means the message is currently unavailable; it happens when a user first writes to a business whose number was onboarded from the WhatsApp Business app.
When the error comes from your send
Short answer: if you sent the message and got 131051, the type field of your payload (or the object named after it) is not one the Cloud API can send. Meta's send-messages page lists what is supported: text, image, audio, video, document, sticker, location, contacts, address, interactive (reply buttons, list, URL button, Flow, location request), reaction and catalog messages, plus templates.
The usual causes are integration mistakes, not account problems. A system that builds payloads dynamically may write a type it made up, such as a root-level "button" instead of "interactive", or use the name of a type that exists only on the inbound side. Sometimes the structure is right but the inner object is missing: type "image" with no image object. The Hub validates the body before forwarding and answers INVALID_MESSAGE when it matches no supported type, but Meta's 131051 can still come back if the shape passes local validation and is refused upstream.
# Wrong: "button" is not a send type
curl -X POST https://crprohub.com/api/v1/channels/CHANNEL_UUID/messages \
-H "Authorization: Bearer hub_pk_EXAMPLE_NOT_REAL" \
-H "Idempotency-Key: 3b6e9c1a-41d2-4f7e-9a10-5d2c8e7f0b11" \
-H "Content-Type: application/json" \
-d '{"to":"5521999999999","type":"button","button":{"text":"Yes"}}'
# Right: reply buttons are the interactive type
-d '{"to":"5521999999999","type":"interactive","interactive":{
"type":"button",
"body":{"text":"Confirm the order?"},
"action":{"buttons":[
{"type":"reply","reply":{"id":"yes","title":"Yes"}},
{"type":"reply","reply":{"id":"no","title":"No"}}]}}}'The Hub's quickstart shows the body format and what the 202 response means. Remember that 202 only confirms the request was accepted; Meta's refusal can come on the call itself, as 502 META_SEND_FAILED with the code in details.meta_code, or later, in the message.status event.
When the error comes from an inbound message
Short answer: if 131051 arrived on an inbound-message webhook, nothing failed on your side. The contact sent something the Cloud API does not deliver as usable content, and you need to handle type unsupported as a normal case in your flow.
Meta's page for unsupported messages lists the possible unsupported.type values: button, edit, errors, gif, group_invite, hsm, image, interactive, keep_in_chat, link_preview, list, location, media_placeholder, order, pin, poll_creation, poll_update, product and reaction. Two practical points follow. First, image and location appear in that list, so 131051 does not mean the type is nonexistent, only that this particular form of delivery is unsupported. Second, unsupported.type is the field that tells situations apart, so store it.
{
"messages": [{
"from": "5521999999999",
"id": "wamid.EXAMPLE789",
"timestamp": "1751142888",
"type": "unsupported",
"unsupported": { "type": "poll_creation" },
"errors": [{
"code": 131051,
"title": "Message type unknown",
"error_data": { "details": "Message type is currently not supported." }
}]
}]
}The payload above illustrates the structure Meta describes, with a type we picked; check the exact shape in the official reference before writing a strict parser. In practice your code should read type, see unsupported and take a specific path instead of falling into text handling.
How to handle it in code
Short answer: split the two cases by where the error shows up. An error on your send is fixed in the code that builds the payload; an error on an inbound message is handled with a reply to the contact and a log entry, with no retry.
- On send, validate type against a closed list before calling the API and make sure the object named after the type is present and filled.
- On receipt, branch on type === "unsupported" before any text logic, and keep unsupported.type so you know what the contact tried to send.
- Reply asking for a supported format, such as text or an image. A free-form reply only goes out if the 24-hour service window is open; since the contact just wrote, it is.
- Do not put the event in a retry queue. There is nothing to resend: the original message is not yours.
If your flow is a bot, treat unsupported as an intent to be asked about again, not as silence. A contact who watches the bot ignore a poll or a group message tends to repeat the send, and every repetition generates another event of the same kind.
How it shows up in CRPRO Hub
Short answer: through the Hub, a send-side 131051 appears as a send error with Meta's code in details.meta_code, or as a message.status event with status failed and the code in errors. The receive-side one arrives as an inbound-message event whose type is unsupported.
To never depend on the title format, always read the code field of the first errors item and error_data.details. The same care applies to every code in this series: Meta recommends building handling on code and details and watching both the synchronous Graph API response and the webhook, because some errors only arrive asynchronously. See the webhooks page for signatures and retries.
| Where it appears | Likely cause | What to do |
|---|---|---|
| Send response or message.status failed | type outside the send list, or the type object missing | Fix the payload and send again with a new Idempotency-Key |
| Inbound webhook, type unsupported | The contact sent a format the API does not deliver | Log unsupported.type and ask for a supported format |
| Webhook with code 131060 | First message to a number onboarded from the WhatsApp Business app | Treat as message unavailable, not as 131051 |
Diagnostic checklist
Short answer: three questions tell you the case. Who originated the message, what value does type hold, and what does the error object say.
- Did you send it? Compare type with the supported list on Meta's send-messages page.
- Did the contact send it? Read unsupported.type and decide your flow's reply.
- Is the code 131060 instead of 131051? Then it is a first-message-to-app-number case, not a type problem.
- Did the error show up only after the 202? Look for the message.status event with status failed on your webhook endpoint.
Frequently asked questions
Is error 131051 billed?
The documentation reviewed does not address billing for this code. Messages that were not delivered are not reported as delivered, but check the account invoice if in doubt.
Can I resend the message that returned 131051?
Only after fixing the payload. If the type or its object is wrong, an identical resend returns the same error. For inbound messages there is nothing to resend.
Are 131051 and 131060 the same error?
No. Both use the unsupported-message structure, but 131060 signals an unavailable message, tied to a user's first message to a number onboarded from the WhatsApp Business app.
How do I know which type the contact sent?
From the unsupported.type field of the webhook. Meta lists the possible values, such as poll_creation, group_invite and edit, and that is what you use to choose the reply.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.