Updated on November 4, 2026
WhatsApp API error 131053 means Meta could not upload the media used in your message (“Unable to upload the media used in the message”). According to the documentation, the most common cause is the file type: an unsupported MIME type, or one that does not match the file’s real content. Other causes are files over the size limit, unsupported video codecs and URLs that Meta cannot download.
Below you’ll find the official table of formats and sizes, the causes in order of likelihood, commands to test the file and the safest way to send media.
What Meta says about error 131053
In the error codes table, 131053 comes with this guidance:
- the media could not be uploaded for one or more reasons, such as an unsupported media type;
- the failure detail is in
error.error_data.detailsin the messages webhook triggered when the send fails; - inspect the file causing the error and confirm it really is a supported type; on Unix,
file -Ishows the real MIME type.
The media page adds that a mismatched MIME type (131053) is a common error, and that you should check that the file extension matches the actual file type.
A status with this error reaches your webhook like this:
{
"statuses": [
{
"id": "wamid.HBgLNTU4NDk5OTk5OTk5ORUCABIYFjQ1",
"status": "failed",
"timestamp": "1762250400",
"recipient_id": "5584999999999",
"errors": [
{
"code": 131053,
"error_data": {
"details": "Unable to upload the media used in the message."
}
}
]
}
]
}
The details text may carry more information than the example above. Always log the full content.
Supported formats and sizes
Table from the official media documentation, checked on November 4, 2026:
| Category | Format | Extension | MIME type | Max size |
|---|---|---|---|---|
| Audio | AAC | .aac | audio/aac | 16 MB |
| Audio | AMR | .amr | audio/amr | 16 MB |
| Audio | MP3 | .mp3 | audio/mpeg | 16 MB |
| Audio | MP4 Audio | .m4a | audio/mp4 | 16 MB |
| Audio | OGG (OPUS codec only, mono input) | .ogg | audio/ogg | 16 MB |
| Document | Text | .txt | text/plain | 100 MB |
| Document | Excel | .xls / .xlsx | application/vnd.ms-excel / application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | 100 MB |
| Document | Word | .doc / .docx | application/msword / application/vnd.openxmlformats-officedocument.wordprocessingml.document | 100 MB |
| Document | PowerPoint | .ppt / .pptx | application/vnd.ms-powerpoint / application/vnd.openxmlformats-officedocument.presentationml.presentation | 100 MB |
| Document | application/pdf | 100 MB | ||
| Image | JPEG | .jpeg | image/jpeg | 5 MB |
| Image | PNG | .png | image/png | 5 MB |
| Image | Static WebP | .webp | image/webp | 5 MB |
| Sticker | Animated | .webp | image/webp | 500 KB |
| Sticker | Static | .webp | image/webp | 100 KB |
| Video | 3GPP | .3gp | video/3gpp | 16 MB |
| Video | MP4 | .mp4 | video/mp4 | 16 MB |
Extra rules on the same page that often trigger 131053:
- Images: must be 8-bit RGB or RGBA. Animated WebP sent as an image and images over 4,096 pixels on any side are rejected.
- Video: H.264 video codec and AAC audio codec only, with a single audio stream or none. Meta recommends avoiding the H.264 “High” profile with B-frames, because WhatsApp on Android does not support it, and using “Main” without B-frames or “Baseline” with the
moovbox beforemdat. - OGG audio: OPUS only, mono input. An
.oggfile with Vorbis or stereo input can fail.
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 causes, in order
1. MIME type that doesn’t match the file
This is the case Meta calls common. Typical examples: a PNG saved with a .jpg extension, an .mp4 that is really a renamed .mov, or a “PDF” produced by a system that wrote an HTML error page with a .pdf extension.
Check the real type:
# macOS
file -I invoice.pdf
# Linux
file --mime-type invoice.pdf
If the output is text/html instead of application/pdf, the file is not a PDF. Fix how the file is generated, not the extension.
2. File over the size limit
Images over 5 MB and videos over 16 MB are rejected. For larger videos, compress them first or send a text message with a link to your own page.
3. Video with an unsupported codec or profile
Videos exported from phones or editors often come in HEVC (H.265), with the High profile or with several audio tracks. Check what the file contains with ffprobe and convert with ffmpeg if needed:
ffprobe -v error -show_entries stream=codec_name,profile,codec_type -of compact video.mp4
ffmpeg -i video.mov -c:v libx264 -profile:v main -bf 0 -pix_fmt yuv420p \
-c:a aac -ac 2 -movflags +faststart video-whatsapp.mp4
The -movflags +faststart option writes the moov box at the start of the file, as Meta recommends.
4. A URL that Meta cannot download
When you send by link, Meta downloads the file from its own servers. The documentation asks for the URL of media hosted on a public server. That rules out:
- internal network or
localhostURLs; - links that require login, cookies or a token in a header;
- signed URLs that expire before Meta downloads them;
- “preview” links from file-sharing services, which return an HTML page instead of the file;
- servers that block requests from other countries or from bots.
Test the URL from a machine outside your network and check the Content-Type the server returns:
curl -sSI "https://cdn.example.com/invoices/2026-11.pdf"
# Look for: HTTP/2 200 and content-type: application/pdf
If the server answers content-type: text/html or application/octet-stream for a PDF, or responds with 301, 403 or 404, fix the hosting.
5. Expired media ID
When you send by id, the documentation says the request fails if the ID is invalid or has expired. IDs returned by an upload last 30 days; IDs received in webhooks last 7 days.
Link or upload: which one to use
The official image messages documentation says that, for better performance, Meta recommends using the id of an uploaded media asset.
| Criterion | link | id (upload) |
|---|---|---|
| Who fetches the file | Meta, at send time | You, beforehand, at upload |
| When the error shows up | Later, in the webhook | At upload, in a synchronous response |
| Reuse across a campaign | Every send depends on your URL | One upload serves many sends (up to 30 days) |
| Meta’s recommendation | Alternative | Recommended for better performance |
For campaigns with the same header for thousands of people, upload once and reuse the id. A file problem then shows up once, at upload, instead of thousands of times in the webhook.
Step-by-step sending for each media type is in how to send images, PDFs, audio and video with the API. For media in template headers, see how to send a template message.
How to test before sending
A short routine that catches most 131053 errors before they reach a customer:
- Run
file -I(orfile --mime-type) and compare with the table. - Check the size with
ls -lh. - For video, run
ffprobeand confirm H.264 + AAC. - Upload through the API and check that an
idcomes back. - Send to one of your own test numbers and wait for the
deliveredstatus. - Only then use the
idin the campaign.
Upload through Vectalk (the documentation says it requires an instance token):
curl -X POST https://apis.vectalk.com.br/api/media \
-H "Authorization: Bearer $VECTALK_TOKEN" \
-F "file=@/path/invoice-november.pdf" \
-F "type=application/pdf" \
-F "messaging_product=whatsapp"
Response:
{ "id": "1234567890" }
Sending the document with the id:
{
"messaging_product": "whatsapp",
"to": "5584999999999",
"type": "document",
"document": {
"id": "1234567890",
"filename": "invoice-november.pdf",
"caption": "Here is your November invoice."
}
}
The upload type field must be the file’s real MIME type. Sending image/jpeg for a PNG is exactly the mismatch that causes 131053.
131053 vs 131052: don’t mix them up
| Code | Direction | Meaning |
|---|---|---|
| 131053 | Business → customer | Meta could not load the media you sent |
| 131052 | Customer → business | The media the user sent could not be downloaded |
For 131052, Meta advises asking the customer to send the file another way. Downloading incoming media is covered in how to download media from the WhatsApp webhook.
If the failure has no media code and comes as a generic error, see error 131000. The full list is in WhatsApp API error codes.
How it works with Vectalk
Vectalk forwards to the official Cloud API the same payload you would send to Meta, and the status webhook you receive is Meta’s. Error 131053 arrives with the same code and details. Vectalk has endpoints to upload, get the URL of, download and delete media, described in the documentation. Failed messages are not delivered, so they are not deducted from your balance. For an overview, read the official WhatsApp API guide, and to get started, create an account.
Frequently asked questions
What is the maximum image size on the WhatsApp Business API?
5 MB for JPEG, PNG and static WebP, according to Meta’s media documentation. The image must also be 8-bit RGB or RGBA and at most 4,096 pixels on each side.
Can I send a .mov video through the API?
The official table accepts MP4 and 3GPP. A .mov renamed to .mp4 keeps its original content and can cause 131053. Convert it to MP4 with H.264 and AAC.
Why does the PDF open in my browser but fail on WhatsApp?
Usually because the URL depends on a login, cookie or redirect, or because the server returns the wrong Content-Type. Your browser handles that; Meta does not. Test with curl -I from outside your network, or upload the file and send it by id.
Am I charged for a message that failed with 131053?
Meta charges per delivered message. A message with 131053 failed and was not delivered.
How long is a media ID valid?
IDs returned by an upload expire after 30 days. Media IDs received in webhooks expire after 7 days.
Official sources checked on November 4, 2026: Cloud API error codes · Media: supported types, upload and download · Image messages · Vectalk: media upload
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.
