[{"data":1,"prerenderedAt":127},["ShallowReactive",2],{"pseo:errors:unsupported-media-type":3,"highlight:error:unsupported-media-type":121},{"cause":4,"code":5,"example":6,"faqs":10,"feature":17,"fix_steps":21,"http_status":25,"message":8,"protocol_aliases":26,"raised_by":27,"related":61,"retryable":100,"seo":101,"slug":118,"tier":119,"title":120,"updated":116,"url":112},"The file you attached is not an acceptable type for the kind of message you are sending. WhatsApp is strict about this: voice notes must be an Opus-encoded audio file, stickers must be WebP within size rules, images must be JPEG or PNG, and a video must use a codec the recipient's phone can play. Sending a file with the right extension but the wrong actual encoding fails here as well, because the content is sniffed rather than trusted.","unsupported_media_type",{"error":7},{"code":5,"message":8,"request_id":9},"This media type is not supported.","req_01JRQ8F4X9N2K7YB3C5V6W8H0T",[11,14],{"a":12,"q":13},"Stickers are a WebP-only format on WhatsApp, with their own dimension and size rules. A PNG has to be converted to WebP before it can be sent as a sticker. Sending it to the image endpoint instead works fine, but it appears as an ordinary photo rather than as a sticker.","Why was my sticker rejected when it is a PNG?",{"a":15,"q":16},"Almost. The document endpoint is deliberately permissive because documents are delivered as files rather than rendered, but very large files still hit the size ceiling and a few executable types are refused. When in doubt, send as a document and give it a clear filename.","Can I send any file as a document?",{"name":18,"slug":19,"url":20},"Post Status","post-status","\u002Fwhatsapp-api\u002Fpost-status\u002F",[22,23,24],"Match the file to the endpoint: use the document endpoint for anything that is not a genuine image, video or audio file.","Transcode voice notes to Opus in an Ogg container - an MP3 renamed to .ogg will still be rejected.","Check the real content type of the file rather than its extension before uploading; many CMS exports mislabel their files.",415,[],[28,37,42,47,54],{"availability":29,"ban_risk":30,"method":31,"operationId":32,"path":33,"summary":34,"tag":35,"url":36},"ga","medium","POST","sendImage","\u002Fmessages\u002Fimage","Send an image","messages","\u002Fdocs\u002Fapi\u002Fmessages\u002Fsend-image\u002F",{"availability":29,"ban_risk":30,"method":31,"operationId":38,"path":39,"summary":40,"tag":35,"url":41},"sendVoice","\u002Fmessages\u002Fvoice","Send a voice note","\u002Fdocs\u002Fapi\u002Fmessages\u002Fsend-voice\u002F",{"availability":29,"ban_risk":30,"method":31,"operationId":43,"path":44,"summary":45,"tag":35,"url":46},"sendSticker","\u002Fmessages\u002Fsticker","Send a sticker","\u002Fdocs\u002Fapi\u002Fmessages\u002Fsend-sticker\u002F",{"availability":29,"ban_risk":48,"method":31,"operationId":49,"path":50,"summary":51,"tag":52,"url":53},"low","uploadMedia","\u002Fmedia","Upload a file","media","\u002Fdocs\u002Fapi\u002Fmedia\u002Fupload-media\u002F",{"availability":29,"ban_risk":48,"method":55,"operationId":56,"path":57,"summary":58,"tag":59,"url":60},"PATCH","updateProfile","\u002Fusers\u002Fprofile","Update the linked account profile","channel","\u002Fdocs\u002Fapi\u002Fchannel\u002Fupdate-profile\u002F",{"glossary":62,"hub":72,"operations":73,"pillar":20,"siblings":84},[63,66,69],{"title":64,"url":65},"Status story","\u002Fglossary\u002Fstatus-story\u002F",{"title":67,"url":68},"PTT","\u002Fglossary\u002Fptt\u002F",{"title":70,"url":71},"Newsletter","\u002Fglossary\u002Fnewsletter\u002F","\u002Fdocs\u002Ferrors\u002F",[74,76,78,80,82],{"title":75,"url":36},"POST \u002Fmessages\u002Fimage",{"title":77,"url":41},"POST \u002Fmessages\u002Fvoice",{"title":79,"url":46},"POST \u002Fmessages\u002Fsticker",{"title":81,"url":53},"POST \u002Fmedia",{"title":83,"url":60},"PATCH \u002Fusers\u002Fprofile",[85,88,91,94,97],{"title":86,"url":87},"payload_too_large (413)","\u002Fdocs\u002Ferrors\u002Fpayload-too-large\u002F",{"title":89,"url":90},"channel_not_connected (409)","\u002Fdocs\u002Ferrors\u002Fchannel-not-connected\u002F",{"title":92,"url":93},"channel_not_in_qr_state (409)","\u002Fdocs\u002Ferrors\u002Fchannel-not-in-qr-state\u002F",{"title":95,"url":96},"business_account_required (409)","\u002Fdocs\u002Ferrors\u002Fbusiness-account-required\u002F",{"title":98,"url":99},"webhook_url_invalid (422)","\u002Fdocs\u002Ferrors\u002Fwebhook-url-invalid\u002F",false,{"breadcrumb":102,"canonical":113,"description":114,"h1":115,"lastmod":116,"title":117},[103,106,109,111],{"name":104,"url":105},"Home","\u002F",{"name":107,"url":108},"Docs","\u002Fdocs\u002F",{"name":110,"url":72},"Errors",{"name":5,"url":112},"\u002Fdocs\u002Ferrors\u002Funsupported-media-type\u002F","https:\u002F\u002Fwapito.com\u002Fdocs\u002Ferrors\u002Funsupported-media-type\u002F","415 unsupported_media_type: This media type is not supported. The file you attached is not an acceptable type for the kind of message you are sending.","unsupported_media_type — Media type rejected","2026-09-15","unsupported_media_type (415): Media type rejected | Wapito","unsupported-media-type","t8","Media type rejected",[122],{"label":123,"id":124,"lang":124,"code":125,"html":126},"JSON","json","{\n  \"error\": {\n    \"code\": \"unsupported_media_type\",\n    \"message\": \"This media type is not supported.\",\n    \"request_id\": \"req_01JRQ8F4X9N2K7YB3C5V6W8H0T\"\n  }\n}","\u003Cpre class=\"shiki shiki-themes github-light-default github-dark-default\" style=\"background-color:#ffffff;--shiki-dark-bg:#0d1117;color:#1f2328;--shiki-dark:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#116329;--shiki-dark:#7EE787\">  \"error\"\u003C\u002Fspan>\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#116329;--shiki-dark:#7EE787\">    \"code\"\u003C\u002Fspan>\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"unsupported_media_type\"\u003C\u002Fspan>\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#116329;--shiki-dark:#7EE787\">    \"message\"\u003C\u002Fspan>\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"This media type is not supported.\"\u003C\u002Fspan>\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#116329;--shiki-dark:#7EE787\">    \"request_id\"\u003C\u002Fspan>\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"req_01JRQ8F4X9N2K7YB3C5V6W8H0T\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">  }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",1790464915767]