Guides

Whatsapp Api Error Codes Troubleshooting

Published on
Updated on
12 min read
By Kapil Nagar
Whatsapp Api Error Codes Troubleshooting

What is error 131047 on WhatsApp API?

WhatsApp Cloud API errors fall into template mismatches, session window violations, opt-out blocks, rate limits, and policy rejections — log the full webhook payload, fix root cause, and never blindly retry 4xx policy errors. Re-engagement message required — outside the 24-hour session window. Send an approved Utility or Marketing template; resume free-form after customer reply.

Last updated: 24 June 2026

Quick answer: WhatsApp Cloud API errors fall into five buckets: template issues, session window violations, opt-out blocks, rate limits, and policy rejections. Always log the full error code + subcode from the webhook payload, cross-reference Meta's error reference, fix the root cause — and never blindly retry 4xx policy errors, which waste API quota and can trigger quality penalties.

Developers integrating via raw Graph API or CPaaS wrappers like Twilio spend disproportionate time parsing opaque error payloads. The same ten codes account for 90%+ of production failures. This guide maps each to root cause, fix, and retry strategy.

Common error codes reference

CodeNameRoot causeFixRetry?
131026Message undeliverableInvalid phone, not on WhatsApp, or user blocked businessValidate E.164 format; remove from listNo
131047Re-engagement requiredOutside 24-hour session windowSend approved Utility or Marketing templateNo — fix approach
130472User opted outContact unsubscribed from MarketingRemove from Marketing list; sync opt-out to CRMNo
132000Template param mismatchVariable count, order, or format wrongMatch exact variable count and types from approvalYes after fix
132001Template does not existWrong template name or language codeVerify name + language match approved templateYes after fix
132005Template hydrated text too longVariable values exceed character limitTruncate or shorten variable contentYes after fix
80007Rate limit hitExceeded throughput tier or burst limitExponential backoff; request tier upgradeYes with backoff
131031Business account lockedPolicy violation or quality rating criticalStop sends; appeal via Meta Business SupportNo
368Temporarily blockedPolicy violation — spam pattern detectedPause Marketing; audit list and contentNo
100Invalid parameterMalformed request body or missing fieldValidate JSON against API specYes after fix

Webhook delivery status debugging

Sent ≠ delivered. Track the full message lifecycle via webhooks:

StatusMeaningNext step
sentMeta accepted the API requestWait for delivered or failed webhook
deliveredReached user's deviceSuccess — no action needed
readUser opened the messageSuccess — engagement tracked
failedDelivery failedLog error code; apply fix from table above

Step-by-step debugging checklist

  1. Capture full payload — error code, subcode, wamid, recipient phone, timestamp
  2. Verify template — name, language, variable count and order match Meta-approved version exactly
  3. Confirm phone format — E.164 with country code (e.g. +919876543210, no spaces or dashes)
  4. Check session window — error 131047 means template required, not free-form retry
  5. Check opt-out status — error 130472 means remove from Marketing list permanently
  6. Review quality rating — low rating throttles throughput; error 80007 may be tier-related
  7. Test single message — never batch-retry failures; fix one, verify, then scale
  8. Check WABA status — error 131031 means account-level restriction; stop all sends

Template-specific failures

SymptomLikely causeFix
132000 param mismatchSent 3 variables, template expects 2Count {{1}}, {{2}} placeholders in approved body
Header image failsURL not publicly accessible or wrong aspect ratioUse HTTPS URL; 1.91:1 for image headers
Button URL invalidDynamic URL variable malformedEnsure full https:// URL in variable
Template pausedLow quality rating on this templatePause campaign; revise copy; resubmit for approval

Template workflow: Template approval guide

Rate limits and throughput tiers

Meta assigns messaging throughput tiers based on quality rating and business verification:

  • Tier 1: 1,000 business-initiated conversations / 24h
  • Tier 2: 10,000 / 24h
  • Tier 3: 100,000 / 24h
  • Tier 4: Unlimited (with maintained quality)

Hit error 80007? Implement exponential backoff (1s, 2s, 4s, 8s). Request tier upgrade in Meta Business Manager after 30 days of green quality rating.

Platform vs DIY debugging

Raw Graph API and Twilio DIY setups require parsing nested JSON error objects and cross-referencing Meta docs. Ominiflow dashboard surfaces delivery failures with human-readable reasons, template mismatch hints, and session window indicators — reducing mean-time-to-resolution from hours to minutes for ops teams without dedicated API engineers.

See: 24-hour window · Ban prevention · CPaaS guide · Twilio vs Ominiflow · Pricing · Comparisons

FAQ

Why do messages show sent but not delivered? expand_more

Webhook delivery status lags behind sent status. Common causes: invalid number (131026), user blocked business, opted out (130472), or phone not registered on WhatsApp. Check failed webhook for specific code.

What is error 131047 on WhatsApp API? expand_more

Re-engagement message required — you are outside the 24-hour session window. Send an approved template; resume free-form after customer replies.

How do I debug WhatsApp webhook failures? expand_more

Log full error payload with wamid, verify template parameters and phone E.164 format, check rate limits and quality rating, test with single message before batch retry.

How do I increase rate limits? expand_more

Maintain green quality rating for 30+ days, complete business verification, and request tier upgrade in Meta Business Manager.

Need help? Chat with AI