Updated on November 24, 2026
To send a video with the WhatsApp Business API, make a POST /<PHONE_NUMBER_ID>/messages request with "type": "video" and a video object holding either the id of previously uploaded media (recommended) or a public link, plus an optional caption of up to 1,024 characters. Meta only accepts MP4 or 3GPP files up to 16 MB, with H.264 video and AAC audio. Most failures come from files that are too large, the wrong codec, or an H.264 profile that Android can’t play.
This guide goes beyond the basics of sending media with the WhatsApp API: it shows how to check a video before sending it, how to convert it with ffmpeg so it meets the rules, and how to diagnose the errors that show up in the webhook.
Official formats, codecs and limits
The table summarizes the Cloud API video messages and media pages:
| Item | Meta’s rule |
|---|---|
| Containers | MP4 (.mp4, video/mp4) and 3GPP (.3gp, video/3gpp) |
| Video codec | H.264 only |
| Audio codec | AAC only |
| Audio tracks | One audio stream or none |
| Maximum size | 16 MB |
Caption (caption) | Up to 1,024 characters |
| Android | H.264 “High” profile with B-frames is not supported; use “Main” without B-frames, or “Baseline” |
| File structure | moov atom before mdat (-movflags faststart in ffmpeg) |
Three things that trip people up:
- MOV, WebM and MKV are not accepted. A
.movexported from an iPhone or a.webmrecorded in a browser has to be converted to MP4 first. - HEVC (H.265) is not accepted. Some phones may record in HEVC. The extension is still
.mp4, but the codec isn’t the supported one. - Two audio tracks are not accepted. Videos edited with separate music and voice-over tracks sometimes come out with two audio streams. Meta accepts one or none.
Upload or link: which one to use for video
The video object takes either id or link, never both. Meta labels id as recommended and link as “not recommended”.
| Option | How it works | When it makes sense |
|---|---|---|
id | You upload to POST /<PHONE_NUMBER_ID>/media and get an ID valid for 30 days | Onboarding, tutorial or campaign videos sent many times |
link | Meta downloads the file from your HTTPS URL at send time | One-off sends of a file already on a public CDN |
For video, uploading is usually the safer choice: the file is larger than an image, and sending no longer depends on your server responding quickly. Since the ID expires after 30 days, store the upload date and re-upload before it runs out. Our article on media ID expiration shows how to track that.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Step by step: sending a video with the Cloud API
1. Upload the file
curl -X POST "https://graph.facebook.com/v27.0/PHONE_NUMBER_ID/media" \
-H "Authorization: Bearer $WHATSAPP_TOKEN" \
-F "file=@tutorial.mp4;type=video/mp4" \
-F "type=video/mp4" \
-F "messaging_product=whatsapp"
The response returns the media ID:
{ "id": "1234567890123456" }
2. Send the video message
curl -X POST "https://graph.facebook.com/v27.0/PHONE_NUMBER_ID/messages" \
-H "Authorization: Bearer $WHATSAPP_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "5584999999999",
"type": "video",
"video": {
"id": "1234567890123456",
"caption": "See how to set up the reader in 1 minute"
}
}'
The response includes the message wamid. It only means Meta accepted the request. If the video fails later, the failure arrives in the status webhook with an error code.
To send by link, replace "id" with "link": "https://cdn.yourcompany.com/videos/tutorial.mp4". The URL must serve the video file itself, with no login and no redirect to an HTML page.
Before sending: check the file with ffprobe
Instead of finding the problem through the webhook, check the file in your pipeline. ffprobe (bundled with ffmpeg) shows codec, profile and streams:
ffprobe -v error -show_entries stream=index,codec_type,codec_name,profile,has_b_frames \
-show_entries format=format_name,size,duration -of json tutorial.mp4
What to look for in the output:
- Video
codec_nameequal toh264. If you seehevc,vp9orav1, convert it. profileequal toMainorBaseline(orConstrained Baseline). If it saysHighandhas_b_framesis greater than zero, convert it so it doesn’t fail on Android.- Only one stream with
codec_typeequal toaudio, withcodec_nameequal toaac. sizeunder 16 MB.
A simple Node.js check to run before uploading:
import { execFileSync } from 'node:child_process';
const LIMIT = 16 * 1024 * 1024;
export function isVideoCompatible(path) {
const output = execFileSync('ffprobe', [
'-v', 'error', '-show_streams', '-show_format', '-of', 'json', path,
]);
const info = JSON.parse(output.toString());
const video = info.streams.filter((s) => s.codec_type === 'video');
const audio = info.streams.filter((s) => s.codec_type === 'audio');
const problems = [];
if (video.length !== 1 || video[0].codec_name !== 'h264') problems.push('video must be H.264');
if (video[0] && video[0].profile === 'High' && Number(video[0].has_b_frames) > 0) {
problems.push('High profile with B-frames does not play on Android');
}
if (audio.length > 1) problems.push('more than one audio track');
if (audio.length === 1 && audio[0].codec_name !== 'aac') problems.push('audio must be AAC');
if (Number(info.format.size) > LIMIT) problems.push('file larger than 16 MB');
return { ok: problems.length === 0, problems };
}
ffmpeg recipes to make a video compatible
The commands below follow Meta’s rules (H.264 Main without B-frames, AAC, a single audio stream, faststart). The quality, resolution and bitrate values are our suggestions to fit within the limit, not Meta requirements. Tune them to your content.
Convert any video (MOV, WebM, HEVC)
ffmpeg -i input.mov \
-map 0:v:0 -map 0:a:0? \
-c:v libx264 -profile:v main -bf 0 -pix_fmt yuv420p -crf 26 \
-c:a aac -b:a 128k \
-movflags +faststart output.mp4
-map 0:a:0? keeps only the first audio track (and doesn’t fail if the video has no audio). -bf 0 turns off B-frames.
Lower the resolution
A 4K video rarely needs to reach a customer’s phone at that size. Capping the height at 720 pixels usually cuts the file size a lot:
ffmpeg -i input.mp4 -vf "scale=-2:720" \
-c:v libx264 -profile:v main -bf 0 -pix_fmt yuv420p -crf 26 \
-c:a aac -b:a 96k -movflags +faststart output-720p.mp4
Work out the bitrate to fit in 16 MB
For longer videos, swap -crf for a fixed bitrate. The math is an estimate:
- 16 MB is about 128 megabits (16 × 8).
- Divide by the duration in seconds: a 90-second video allows about 1.4 Mbps in total.
- Subtract the audio (say, 96 kbps) and leave about 10% headroom for the container: roughly 1.15 Mbps for the video.
ffmpeg -i input.mp4 -vf "scale=-2:720" \
-c:v libx264 -profile:v main -bf 0 -pix_fmt yuv420p \
-b:v 1150k -maxrate 1150k -bufsize 2300k \
-c:a aac -b:a 96k -movflags +faststart output-90s.mp4
If the file still doesn’t fit, the best option is to shorten the video or send a link to watch it on your website, using a link button.
Common errors when sending video
When a send fails after being accepted, the status webhook arrives with "status": "failed" and an errors object. These are the codes that show up most with video, according to Meta’s error code list:
| Code | What Meta says | What to do with video |
|---|---|---|
131053 | Unable to upload the media used in the message | Read error.error_data.details in the webhook. Check the file’s real MIME type, the codecs (H.264 + AAC) and the size |
131000 | Message failed to send due to an unknown error | Retry. If it persists, open a Meta Direct Support ticket |
131051 | Unsupported message type | Check the type (video, lowercase) and the object name in the payload |
100 | Unsupported or misspelled parameter, or over a length limit | Check field names and whether the caption exceeds 1,024 characters |
A sample webhook with a media failure:
{
"id": "wamid.HBgLNTU4NDk5OTk5OTk5FQIAERgSQ0E3QjU4OUY2NTBDMkY5RjI0AA==",
"status": "failed",
"timestamp": "1764000000",
"recipient_id": "5584999999999",
"errors": [
{
"code": 131053,
"error_data": { "details": "Reason description sent by Meta" }
}
]
}
Log the details field: it tells you whether the problem was format, size or download. Our guides to error 131053 and error 131000 go deeper into diagnosis.
One case that doesn’t produce an error: the video is delivered but won’t play on some Android phones. It’s almost always the High profile with B-frames. The API accepts the file and the customer complains later. That’s why it pays to run ffprobe first.
Video outside the 24-hour window
A free-form video message can only be sent while the 24-hour customer service window opened by the customer is active. To send a video to someone who hasn’t messaged you in that period, use a template with a video header, approved by Meta beforehand. Sending it works the same way as sending a template message via the API, with the video in the header component.
As for cost, Meta charges per delivered message and by category, not by content type. A video sent inside the window is a service message: since October 1, 2026, each phone number gets 1,000 free service messages per month, and billing starts at message 1,001 (BRL 0.0350 per message for recipients in Brazil).
How to send video with Vectalk
Vectalk is a proxy for the official WhatsApp API: the video payload is the same as on the Cloud API. Only the base URL and token change.
- Upload:
POST https://apis.vectalk.com.br/api/media(multipart withfile,typeandmessaging_product), using an instance token. - Send:
POST https://apis.vectalk.com.br/api/messageswith"type": "video"andvideo.idorvideo.link, plus an optionalcaption.
curl -X POST https://apis.vectalk.com.br/api/messages \
-H "Authorization: Bearer $VECTALK_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messaging_product": "whatsapp",
"to": "5584999999999",
"type": "video",
"video": { "id": "1234567890123456", "caption": "Watch the tutorial" }
}'
The routes are documented in Send video and Media upload. Each delivered message is deducted from your prepaid Vectalk balance, with no card registered with Meta. To get started, create your account at apps.vectalk.com.br/register.
Frequently asked questions
What is the maximum video size on the WhatsApp API?
16 MB, for both MP4 and 3GPP. Above that, lower the resolution, adjust the bitrate or send a link to the video on your website.
Can I send a .mov file or a video recorded in HEVC?
Not directly. Meta only accepts MP4 and 3GPP with H.264 video and AAC audio. Convert with ffmpeg before uploading, as in the recipes above.
Why is the video delivered but won’t play on Android?
Meta states that H.264 videos in the High profile with B-frames are not supported by Android WhatsApp clients. Re-encode in Main without B-frames (-profile:v main -bf 0) or in Baseline.
Can the video have a long caption?
The caption accepts up to 1,024 characters. Keep the text below that; a parameter over the limit may come back as error 100.
Can I send a video without audio?
Yes. Meta accepts one audio stream or none. What it doesn’t accept is more than one.
Official sources consulted on November 24, 2026: Video messages, Media (Cloud API), Error codes, Status webhook, Vectalk: send video, Vectalk: media upload.
Put your business on the official WhatsApp
Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.
