Logo

Get Click Media

AI Communication Platform

Trusted by 10,000+ businesses

WhatsApp

WhatsApp API Error Codes — Complete Reference and Troubleshooting Guide

Complete WhatsApp Business API error code reference — 400, 429, 130429, 131030, 131047, 131051, 132000, and more. What each code means, why it happens, and the exact fix, with Node.js retry-logic code samples.

Get Click Media7 min read
WhatsApp API Error Codes — Complete Reference and Troubleshooting Guide

WhatsApp Business API error codes are numeric codes returned in the API response when a request fails. Common error codes include: 400 (bad request — invalid payload), 429 (rate limit exceeded — implement backoff), 130429 (rate limit on the business account), 131030 (template not found or not approved), 131047 (re-engagement message outside the 24-hour window), 131051 (message not sent — invalid phone number), and 132000 (template parameter count mismatch). Each error includes a message field with a human-readable description.

This reference is maintained by Get Click Media's technical support team from real production incident patterns across our WhatsApp Business API client base — it complements the WhatsApp API documentation with the troubleshooting detail engineers need when a send fails.

Error Response Structure

{
  "error": {
    "code": 131030,
    "message": "(#131030) Template name does not exist in the translation",
    "type": "OAuthException",
    "fbtrace_id": "AbCdEf123456"
  }
}

// HTTP status code also indicates error category:
// 400 Bad Request    — fix your payload, do not retry
// 401 Unauthorized    — fix authentication credentials
// 429 Too Many Req    — rate limited, backoff and retry
// 500 Server Error    — Meta server issue, retry with backoff

Complete Error Code Reference

Error codeHTTP statusMeaningAction required
400400Bad request — malformed JSON or missing required fieldCheck request payload structure. See API docs for required fields.
401401Unauthorized — invalid or expired API keyRegenerate API key in GCM dashboard. Check Authorization header.
403403Forbidden — account does not have permission for this actionCheck WABA permissions. Contact GCM if action should be permitted.
404404Resource not found — message_id, media_id, or template not foundVerify the ID is correct. Template may have been deleted.
429429Rate limit exceeded — too many requests per secondImplement exponential backoff. Wait Retry-After header duration.
130429429Business account rate limit — daily conversation limit reachedAccount has hit daily messaging tier limit. Tier upgrades automatically over time.
131000400Generic error — message could not be sentCheck all required fields. Verify phone number format (E.164).
131005400No permission to send message to this phone numberCustomer may have blocked your number or opted out.
131008400Required parameter missingAdd the missing parameter. Error message specifies which field.
131009400Invalid parameter valueFix the invalid value. Check field format requirements in API docs.
131021400Recipient phone number not in allowed listDevelopment accounts only — add number to test number list in Meta BM.
131026400Message undeliverable — recipient unreachableNumber may be off-network or not a valid WhatsApp number. Check with GET /contacts/{phone}.
131030400Template not found or not approvedVerify template name spelling. Check approval status in Meta BM > Templates.
131031400Template paused due to qualityTemplate quality score too low. Improve message content and opt-in quality.
131045400Phone number not registered on Cloud APINumber registration not completed. Contact GCM onboarding team.
131047400Re-engagement message outside 24-hour windowOnly template messages (not free-text) can be sent outside the 24-hour window.
131051400Message type not supported by recipientSome older WhatsApp versions may not support interactive messages. Use text fallback.
131052400Media download failedMedia URL not publicly accessible or URL expired. Use /media endpoint to pre-upload.
132000400Template parameter count mismatchNumber of variables in API call does not match template definition.
132001400Template header format mismatchHeader type in API call (image/text/document) does not match approved template header.
133000400Sender and recipient are the sameCannot send a message to your own business number.
500500Internal server error — Meta infrastructure issueRetry with exponential backoff. Log fbtrace_id for escalation.

Error Handling Code Pattern — Node.js

async function sendWhatsApp(to, template, vars, retries = 3) {
  try {
    const response = await axios.post(
      'https://api.getclickmedia.com/v2/whatsapp/messages',
      { to, type: 'template', template: { name: template, language: { code: 'en' },
        components: [{ type: 'body', parameters: vars }] } },
      { headers: { Authorization: `Bearer ${process.env.GCM_API_KEY}`,
                   'X-Phone-Number-ID': process.env.GCM_PHONE_ID } }
    );
    return response.data;
  } catch (err) {
    const code = err.response?.data?.error?.code;
    const status = err.response?.status;

    // Do NOT retry these — fix the payload
    if ([131030, 131008, 131009, 132000, 132001].includes(code)) {
      console.error(`Non-retryable error ${code}: fix payload`);
      throw err;
    }

    // Rate limit — wait and retry
    if (status === 429 && retries > 0) {
      const wait = parseInt(err.response.headers['retry-after'] || '5') * 1000;
      await new Promise(r => setTimeout(r, wait));
      return sendWhatsApp(to, template, vars, retries - 1);
    }

    // Server error — exponential backoff
    if (status >= 500 && retries > 0) {
      await new Promise(r => setTimeout(r, (4 - retries) * 2000));
      return sendWhatsApp(to, template, vars, retries - 1);
    }

    throw err; // Give up after retries exhausted
  }
}

Frequently Asked Questions — WhatsApp API Error Codes

What does error code 131030 mean? Error 131030 means the template name in your API call does not exist or is not approved in your WhatsApp Business Account. Causes: typo in template name, template has not been submitted for approval yet, template was rejected by Meta, or template was approved but in a different language code than specified. Fix: check the exact template name in Meta Business Manager > WhatsApp Manager > Message Templates.

What does error code 131047 mean? Error 131047 means you attempted to send a free-text (non-template) message to a customer more than 24 hours after their last message. WhatsApp only allows free-text messages within the 24-hour service conversation window. Outside this window, only pre-approved template messages can be sent. Fix: use a template message instead of free text.

What should I do when I receive error code 429? Error 429 means you have exceeded the API rate limit. Check the Retry-After header in the response — it specifies how many seconds to wait before retrying. Implement exponential backoff in your application. If you consistently hit 429, your message volume may exceed your current plan limits — contact Get Click Media to upgrade your messaging tier.

Why do I get error 131005 (no permission to send)? Error 131005 means the customer has blocked your WhatsApp business number or has opted out of receiving messages. You cannot message customers who have blocked you. Remove this number from your contact list and do not attempt further sends. If this error appears frequently, review your message quality and opt-out rates — high opt-outs indicate messaging frequency or content issues.

Get Started

For deeper context on the failure modes above, see WhatsApp API rate limits for tier and throughput limits, WhatsApp webhooks for delivery status events, and WhatsApp API security for credential and signature issues.

Get WhatsApp Business APIRead API Docs · Get API Access · Talk to Technical Team

whatsapp api error codeswhatsapp api error codes listwhatsapp business api errorswhatsapp api troubleshootwhatsapp api 131030 errorwhatsapp api error handling india

Frequently Asked Questions

Error 131030 means the template name in your API call does not exist or is not approved in your WhatsApp Business Account. Causes: typo in template name, template has not been submitted for approval yet, template was rejected by Meta, or template was approved but in a different language code than specified. Fix: check the exact template name in Meta Business Manager > WhatsApp Manager > Message Templates.

Error 131047 means you attempted to send a free-text (non-template) message to a customer more than 24 hours after their last message. WhatsApp only allows free-text messages within the 24-hour service conversation window. Outside this window, only pre-approved template messages can be sent. Fix: use a template message instead of free text.

Error 429 means you have exceeded the API rate limit. Check the Retry-After header in the response — it specifies how many seconds to wait before retrying. Implement exponential backoff in your application. If you consistently hit 429, your message volume may exceed your current plan limits — contact Get Click Media to upgrade your messaging tier.

Error 131005 means the customer has blocked your WhatsApp business number or has opted out of receiving messages. You cannot message customers who have blocked you. Remove this number from your contact list and do not attempt further sends. If this error appears frequently, review your message quality and opt-out rates — high opt-outs indicate messaging frequency or content issues.

Related Articles

WhatsApp Business API Documentation — Complete Reference India 2026
WhatsApp

WhatsApp Business API Documentation — Complete Reference India 2026

WhatsApp Business API documentation covering REST API endpoints, webhook event schemas, Cloud API authentication, template management, and Catalog and Flows APIs. Code samples in Node.js, Python, PHP, and Java from an official Meta BSP.

6 min read
WhatsApp API Rate Limits — Complete Guide for Indian Developers
WhatsApp

WhatsApp API Rate Limits — Complete Guide for Indian Developers

WhatsApp Business API has per-second throughput limits and daily messaging tier limits that scale from 1,000 to unlimited conversations. Learn both systems, Meta's tier progression, quality score factors, and a proven warm-up schedule.

6 min read
WhatsApp API Security Best Practices — Complete Guide for Indian Developers
WhatsApp

WhatsApp API Security Best Practices — Complete Guide for Indian Developers

WhatsApp Business API security across four layers: API credential security, webhook signature verification, DPDP 2023 data compliance, and message content security. Includes a pre-production security checklist.

8 min read