Error Codes & API Usage Analytics
Handle standardized API error responses, interpret WhatsApp delivery ErrorCode values, and monitor traffic in Settings.
REST API Error Payload & Codes
All 4xx and 5xx REST responses follow a consistent JSON structure with an api_id reference ID, a readable error description, a machine-readable error_code, and an optional hint explaining how to resolve the request.
| Field | Type | Description |
|---|---|---|
| AUTH_MISSING / AUTH_MALFORMED | 401 | Missing or malformed HTTP Basic Authorization header. |
| AUTH_ID_MISMATCH / AUTH_INVALID | 401 | URL Auth ID does not match the Basic username, or the credential is invalid or revoked. |
| API_NOT_AVAILABLE | 403 | Public API access is not enabled for this workspace. |
| WHATSAPP_NOT_CONNECTED / SRC_MISMATCH | 400 | No active WhatsApp number is connected, or src does not match your connected number. |
| TEMPLATE_NOT_FOUND / NOT_APPROVED | 400 / 404 | Template or WABA was not found, or the template has not been approved by Meta yet. |
| TEMPLATE_PARAMS_MISMATCH | 400 | Submitted variable parameters do not match the template's defined placeholders. |
| CALLBACK_URL_INVALID | 400 | Callback URL must be a valid public https:// URL. |
| RATE_LIMITED | 429 | Request rate exceeded; pause until the Retry-After duration passes. |
| META_UNAVAILABLE / QUEUE_FAILED | 502 / 500 | Upstream WhatsApp delivery or queueing error; retry shortly and quote api_id if contacting support. |
{
"api_id": "9f82a021-38c1-44df-b2a1-5b1f0f8190aa",
"error": "src is not the WhatsApp Business number connected to this account.",
"error_code": "SRC_MISMATCH",
"hint": "Set src to the connected number (ends in 0001)."
}Delivery Callback Error Codes
When WhatsApp cannot deliver a message, status callbacks and GET /Message/{message_uuid}/ return an ErrorCode and explanatory ErrorMessage covering common failure causes as well as upstream Meta delivery codes.
| Field | Type | Description |
|---|---|---|
| 310 (Meta 133010) | delivery | Sending phone number is not registered on the WhatsApp Business Platform. |
| 330 (Meta 131051) | delivery | Unsupported WhatsApp message type. |
| 340 (132001 / 15 / 16) | delivery | Template does not exist in that language, is unapproved, paused, or disabled. |
| 350 (132000 / 05 / 12) | delivery | Template parameter count, length, or format does not match the approved template. |
| 360 (Meta 131031) | delivery | WhatsApp Business Account is restricted or failed verification. |
| 370 (130429 / 48 / 56) | delivery | Sending rate limit or quality restriction reached for this business number. |
| 380 / 131047 | delivery | Outside the 24-hour customer reply window; send an approved template message instead. |
| 131049 / 131026 | delivery | Meta frequency capping (131049) or recipient unavailable on WhatsApp (131026). |
API Usage Dashboard (/settings/api-usage)
Monitor API volume, errors, and webhook deliveries directly in WBMSG by opening Settings → Advanced Settings → View usage (/settings/api-usage).
Select 24h, 7d, or 30d views to inspect total request counts, endpoint breakdowns, per-credential traffic, top failure reasons, individual failed requests, message status history, and webhook callback attempt logs.