Yes. WhatsApp sets strict file size limits for media attachments used in template messages. Going over these limits will result in rejection or API errors.
Media Type | Max File Size | Recommended Specs | Remarks |
Image (JPEG, PNG) | Up to 5 MB | Aspect ratio: 1.91:1 or 1:1 | Commonly used in header media |
Sticker (WebP) | Up to 500 KB | Square, 512x512 px recommended | For template headers only |
Video (MP4) | Up to 16 MB | H.264 codec, AAC audio | Accepted as header media |
Audio (AAC, MP4, AMR, OPUS) | Up to 16 MB | AAC/MP4 recommended | Limited to standalone messages, not headers |
Document (PDF, DOC, PPT, etc.) | Up to 100 MB | PDFs preferred for compatibility | Can be included in header |
Example Error Response:
{ "error": { "message": "Media file size too large", "type": "OAuthException", "code": 131051, "error_subcode": 2494010, "fbtrace_id": "AbCdEf123456" }}