Meta API Error Codes Error 131051 400 Bad Request

WhatsApp Error 131051: Unsupported Message Type — Cloud API Resolution

Error 131051 is triggered when the message type specified in your request payload does not match Meta Cloud API specifications or uses an invalid MIME type.

Probable Causes

  • Passing an unsupported media file extension (e.g. .exe, .zip, .rar, or unsupported video codecs)
  • Incorrect type property defined in JSON (e.g. sending file instead of document)
  • Interactive buttons formatted with invalid button type strings

Step-by-Step Resolution

Recommended Fix Protocol:

Ensure your payload type matches supported values: text, image, audio, document, video, sticker, location, contacts, interactive, or template. Verify media MIME types match official Meta Cloud API specifications.

Technical Example / Code Payload:

{ "messaging_product": "whatsapp", "to": "918779713123", "type": "document", "document": { "link": "https://nydigital.co.in/assets/docs/proposal.pdf", "caption": "Company Profile PDF" } }
Quick Answers

Frequently Asked Questions

What document types does WhatsApp Business API support?+

PDF, DOC, DOCX, PPT, PPTX, XLS, and XLSX files up to 100MB are supported.

Can I send animated GIFs?+

Yes, but they must be formatted as MP4 video without an audio track or sent as static WebP stickers.

Need Technical Help?

Resolve WhatsApp API Issues Fast with NY Digital

Our certified Meta API engineering team helps Indian enterprises diagnose webhook bugs, unblock banned numbers, and scale messaging limits safely.

Speak with Our Engineering Team
Chat on WhatsApp