IOSOR Learn
WhatsApp Template Header Media MIME Validation Gates
Validate header media MIME types against Meta's accepted formats to prevent silent rejections and enable partner route comparison for media-heavy campaigns.
Lead Telecom & Routing Architect · Lausanne, CH
Ops teams must validate every template header media file against Meta's strict MIME whitelist — image/jpeg, image/png, video/mp4, document/pdf — before submission to avoid silent rejections that never surface in webhook callbacks. A single mismatched MIME type blocks the entire template, wasting review cycles and delaying campaign launches.
MIME Whitelist Enforcement
Meta accepts only four MIME families for header media: image/jpeg, image/png, video/mp4, and document/pdf. Any deviation — including image/webp, video/quicktime, or application/octet-stream — triggers immediate rejection without a DLR receipt. Automate pre-submission checks using file signature inspection, not extension sniffing, to catch mislabeled payloads.
File Signature vs Extension Mismatch
Extensions lie; magic bytes don't. A .mp4 container holding HEVC streams fails validation even with correct video/mp4 MIME. Implement libmagic or python-magic validation at ingest to verify actual codec compliance. Reject files where signature disagrees with declared MIME before they reach Meta's API.
Size and Dimension Gates per MIME
Each MIME class carries hard limits: images ≤ 5 MB / 3000×3000 px, videos ≤ 16 MB / 30 sec / H.264 baseline, documents ≤ 100 MB. Oversized payloads return generic errors that obscure the root cause. Enforce per-MIME ceilings in your CI pipeline with ffmpeg probe for video and Pillow for images.
Silent Rejection Detection via Webhook Gap
Rejected templates produce zero webhook events — no template_status, no message_template_quality_update. Correlate submission timestamps with webhook silence windows > 5 min to flag probable MIME failures. Cross-reference with Meta's Graph API template inspection endpoint to confirm rejection reason codes.
Partner Route Comparison for Media-Heavy Flows
Media templates stress partner transcoding and delivery paths differently than text. Use Decision Brief to compare verified partner routes on header media success rates, transcoding latency, and webhook fidelity for your corridor. Select routes that surface MIME errors in real time, not silent drops.
Start with IOSOR
Run the MIME validation checklist: 1) signature-verify every header asset at ingest, 2) enforce per-MIME size/codec ceilings in CI, 3) monitor webhook gaps for silent rejections, 4) compare partner routes via Decision Brief for media-heavy corridors, 5) link template rejection patterns to Template Rejection Pattern Failover Gates, render failures to WhatsApp Template Render Failure Cost Recovery, and media debit guards to When WhatsApp media fails quality, do not debit as delivered.
IOSOR takeaway
Meta accepts only four MIME families for header media: image/jpeg, image/png, video/mp4, and document/pdf. Select routes that surface MIME errors in real time, not silent drops (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- WhatsApp Template Parameter Mapping: Failover Audit for Route Comparison
Audit template parameter mapping, header and media placeholders, and fallback behavior across partner routes before committing volume after a route switch.
- Template Rejection Remediation Gate for WhatsApp Route Quality
Classify template rejection reasons, quantify resubmission latency, and decide whether to fix copy or re-route via /tools/brief partner comparison.
- Repair WhatsApp Template Status Sync Drift Before Sends Debit
Audit how template approval, rejection reasons, and pause flags stay synchronized across route partners, so a stale approved state never debits a campaign or causes silent delivery gaps.












