← Blog

·

WhatsApp API error 131051: unsupported message type

Updated on November 10, 2026

WhatsApp API error 131051 means “unsupported message type.” It shows up in two places: when your system tries to send a type the Cloud API doesn’t accept, and when a customer sends you something the API can’t deliver, which reaches your webhook as type: "unsupported". On the sending side, the fix is to use one of the documented types with the matching object; on the receiving side, it’s to handle the event and ask the customer for another format.

This article covers both sides: the list of supported types, the payload mistakes that come up most, and how to deal with incoming messages the API doesn’t support.

What Meta says about 131051

In the official error codes table, 131051 is described as “Unsupported message type,” and the guidance is to check the list of supported message types before trying again with one of them.

The unsupported messages webhook reference uses the same code for the receiving side: when a user sends a type the Cloud API doesn’t support, the webhook carries type: "unsupported", an unsupported object with the original type, and an errors array with 131051.

Message types the API accepts for sending

The sending messages page lists the types you can send inside the customer service window. In the request body, each one maps to a type value and an object with the same name:

What you want to sendtypeObject in the body
Texttexttext
Imageimageimage
Videovideovideo
Audioaudioaudio
Document (PDF, spreadsheet, etc.)documentdocument
Stickerstickersticker
Locationlocationlocation
Contact cardcontactscontacts
Emoji reactionreactionreaction
Buttons, list, URL button, Flow, location requestinteractiveinteractive, with interactive.type
Approved templatetemplatetemplate

Outside the 24-hour window only template is accepted; trying another type in that case returns error 131047, not 131051. Full examples for every type are in how to send a WhatsApp message via the API.

Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →

The most common bad payloads

Many 131051 errors come from teams that migrated from an unofficial API or followed an old tutorial, and use type names the Cloud API doesn’t know. The usual suspects:

Bad payloadWhy it failsCorrect
"type": "buttons"Buttons are a subtype of interactive"type": "interactive" and "interactive": { "type": "button", ... }
"type": "list"Lists are interactive too"interactive": { "type": "list", ... }
"type": "file" or "type": "pdf"Not valid types"type": "document"
"type": "contact" (singular)The type name is plural"type": "contacts" with an array
"type": "poll"Polls aren’t among the documented send typesUse buttons or a list
"type": "image" with "document": {...}The object doesn’t match the typeThe object name must equal the type
"type": "Text"Values are lowercase"type": "text"

Depending on the mistake, the API may answer with 131051 or with a parameter error such as 100 or 131009. Always log error_data.details: it usually points to the exact field.

Here’s the classic mistake, buttons with the wrong type:

{
  "messaging_product": "whatsapp",
  "to": "5511988888888",
  "type": "buttons",
  "buttons": [{ "id": "yes", "title": "Yes" }, { "id": "no", "title": "No" }],
  "text": "Can we deliver tomorrow?"
}

The same content in Cloud API format:

{
  "messaging_product": "whatsapp",
  "to": "5511988888888",
  "type": "interactive",
  "interactive": {
    "type": "button",
    "body": { "text": "Can we deliver tomorrow?" },
    "action": {
      "buttons": [
        { "type": "reply", "reply": { "id": "yes", "title": "Yes" } },
        { "type": "reply", "reply": { "id": "no", "title": "No" } }
      ]
    }
  }
}

The interactive subtypes and their limits (number of buttons, list rows, title length) are covered in interactive messages.

Validate the type before sending

A simple check in your code saves a round trip to the API:

const TYPES = new Set([
  'text', 'image', 'video', 'audio', 'document', 'sticker',
  'location', 'contacts', 'reaction', 'interactive', 'template',
]);

export function validateType(payload) {
  const { type } = payload;
  if (!TYPES.has(type)) {
    throw new Error(`type "${type}" is not accepted by the Cloud API`);
  }
  if (!(type in payload)) {
    throw new Error(`missing "${type}" object in the body`);
  }
  return true;
}

Keep this list in sync with the documentation: Meta adds types and subtypes over time.

The webhook with type “unsupported”

The other side of 131051 is inbound. According to the official reference, the unsupported message webhook fires when:

  • a WhatsApp user sends a message type the Cloud API doesn’t support;
  • you send a message to a number that’s already in use with the API (in that case, the webhook goes to the owner of the recipient number);
  • a user messages, for the first time, a business onboarded with a WhatsApp Business app number.

The payload, trimmed from the official example:

{
  "object": "whatsapp_business_account",
  "entry": [{
    "id": "<WABA_ID>",
    "changes": [{
      "field": "messages",
      "value": {
        "messaging_product": "whatsapp",
        "messages": [{
          "from": "5511988888888",
          "from_user_id": "<BSUID>",
          "id": "wamid.HBgLNTUxMTk4ODg4ODg4OBUCABIYFDNB...",
          "timestamp": "1762780800",
          "type": "unsupported",
          "unsupported": { "type": "edit" },
          "errors": [{ "code": 131051, "title": "Message type unknown" }]
        }]
      }
    }]
  }]
}

Things to watch:

  • unsupported.type tells you what the user tried to send. The reference lists many possible values, including edit, poll_update and even common type names such as image, location, reaction and interactive. Don’t assume “unsupported” always means something exotic: log the value.
  • The code may differ. The same reference documents 131060 (message currently unavailable), which tends to appear on a user’s first message to a business whose app number is connected to the API.
  • Use the right user ID. Meta recommends identifying the user by user_id and from_user_id (the BSUID, a business-scoped user ID). from and wa_id can be missing when the user has adopted a username and their phone number isn’t available.

How to reply to the customer

An unsupported event is a real message from your customer that you can’t read. Ignoring it looks like nobody answered. A simple handler:

export async function handleMessage(msg, send) {
  if (msg.type !== 'unsupported') return handleNormally(msg);

  const kind = msg.unsupported?.type ?? 'unknown';
  const code = msg.errors?.[0]?.code;
  console.log('unsupported message', msg.id, kind, code);

  if (code === 131051) {
    await send(msg.from, "We got your message but can't open that format. Could you send it as text, a photo or a voice note?");
  }
}

Two cautions: reply once per conversation, not on every event, so it doesn’t turn into spam; and if from isn’t in the payload, send using the identifier Meta indicates for that user. The structure of every inbound message type is in webhook payload examples.

131051 and related errors

CodeWhere it appearsMeaningWhat to do
131051Send or webhookUnsupported message typeUse a documented type; inbound, ask for another format
131047SendOutside the 24-hour windowSend a template
131053SendMedia upload failedCheck MIME type and format. See error 131053
131008 / 131009SendMissing parameter or invalid valueFix the JSON. See 131008 and 131009
131060WebhookMessage currently unavailableLog it and wait for the user’s next message

The full list of codes is in WhatsApp API error codes.

131051 with Vectalk

Vectalk is a proxy for the official Cloud API, so the supported types are the same as Meta’s. They’re all sent through POST https://apis.vectalk.com.br/api/messages with the body in Meta’s format; the Vectalk documentation has one example per type (text, image, document, audio, video, template, buttons, list, sticker, contact, location, reaction and product).

For inbound, webhooks registered with POST https://apis.vectalk.com.br/api/webhooks receive the same payload Meta sends, including unsupported events. Replying to the customer and logging those events happen in your system: Vectalk doesn’t have an inbox in its dashboard. To get started, read the official WhatsApp API guide or create an account at apps.vectalk.com.br/register.

Frequently asked questions

Why do I get 131051 when sending buttons?

Almost always because type is set to buttons or button. In the Cloud API, buttons are type: "interactive" with interactive.type: "button".

Can I send a poll through the WhatsApp API?

Polls aren’t on the list of send types in the messaging documentation reviewed for this article. Use reply buttons or a list to capture the customer’s choice.

What should I do with messages received as “unsupported”?

Log unsupported.type and the error code, and if it’s 131051, reply once asking the customer to send it in another format, such as text, a photo or a voice note.

Am I charged for a message that fails with 131051?

Meta charges for delivered messages. A message rejected for an unsupported type isn’t delivered.

Could 131051 be a Vectalk problem?

No. The code comes from Meta and is about the message type. If the same payload fails directly on the Cloud API, it fails through Vectalk too; the fix is to correct the type and the body object. For temporary service failures, see error 131016.


Official sources checked on November 10, 2026: Cloud API error codes, Sending messages, Unsupported messages webhook, Pricing, Vectalk docs: Send message, Vectalk docs: Webhooks.

Try the official WhatsApp API today

Create your account, generate a token and send your first message with the quick-start guide. Same payloads and webhooks as Meta's Cloud API.