Guides
API principlesErrors
MimicrSandbox control
Errors
The Graph API error envelope, the codes the simulator returns synchronously and the ones that arrive by webhook.
Envelope
json
{
"error": {
"message": "(#132001) Template does not exist",
"type": "OAuthException",
"code": 132001,
"error_data": { "messaging_product": "whatsapp", "details": "template name (promo_outubro) does not exist in pt_BR" },
"fbtrace_id": "AsimZ3x8k2Qp"
}
}codeidentifies the error;error_subcoderefines some (33,460,2388024…).error_data.detailsexplains the specific case. It appears in WhatsApp errors (130000and up) and in many100s.error_user_titleanderror_user_msgappear in template errors, as with Meta.- HTTP is
400in most cases,401for tokens,403for permissions and503for unavailability.
Handle errors by code, not by message.
Synchronous errors
| Code | HTTP | Meaning | Example in the simulator |
|---|---|---|---|
100 | 400 | Missing or invalid parameter | No messaging_product; malformed PIN |
100 / subcode 33 | 400 | Object does not exist or the token can't see it | ID of another WABA; deleted media |
100 / subcode 2388024 | 400 | Template with the same name and language | Repeated Create a template |
100 / subcode 2388042 | 400 | Invalid template name | Uppercase or spaces |
100 / subcode 2593002 | 400 | Template not found | Delete templates by name |
104 | 400 | No token | Missing Authorization header |
190 | 401 | Invalid or revoked token (subcode 460) | See Authentication |
200 | 403 | App token on a WABA route | Use the sandbox token |
2200 | 400 | Callback handshake failed | Subscribe the app |
2500 | 400 | Unknown path | Edge that does not exist |
2635 | 400 | Old Graph API version | v17.0 or earlier |
130429 | 400 | Throughput reached | More than throughput_mps per second |
131008 | 400 | Required parameter missing | Interactive without body.text |
131009 | 400 | Parameter value not valid | 4 buttons; marketing without template |
131021 | 400 | Recipient is the sender | to is the business number |
131051 | 400 | Unsupported message type | type: "poll" |
131053 | 400 | Media upload error | Type or size over the limit |
131056 | 400 | Business–customer pair rate limit | 10 messages to the same number in 60 s |
132000 | 400 | Parameter count mismatch | Template with 2 variables and 1 parameter |
132001 | 400 | Template does not exist or is not approved | PENDING template |
132005 | 400 | Template text too long | Over 1024 characters |
132012 | 400 | Parameter in the wrong format | Image header with text |
132015 | 400 | Template paused | pause review |
132016 | 400 | Template disabled | disable review |
133005 | 400 | Wrong two-step verification PIN | Register a phone number |
133010 | 400 | Number not registered | Deregister a phone number |
136025 | 400 | Wrong verification code | Verify the code |
Asynchronous errors
They arrive in statuses[].errors[] of the messages webhook, with code, title, message, error_data.details and href. The main ones are 131026, 131047, 131049, 131050 and 131056; see Delivery statuses.
Control API errors
The /v1/whatsapp/{slug}/… and /_sim/v1/… routes answer {"error": {"message", "type": "SimulatorException", "code": <HTTP>}} with messages in Portuguese (for example 404 for an unknown contact). The sandbox routes (/v1/whatsapp) use lowercase codes such as sandbox_not_found and wait_timeout. These formats are Mimicr's and do not exist at Meta.