code and message. Knowing what each code means lets you fix the issue
immediately.
Where errors come from
Type 1 — API error (your call to Meta fails):Common error codes
| Code | Meaning | Fix |
|---|---|---|
190 | Access token expired or invalid | Generate a new token in Meta Dashboard |
100 | Invalid parameter | Check phone format (no +, include country code: 919959623255) |
131030 | Number not in test recipients | Add the number in Meta Dashboard → API Setup |
131047 | 24-hour window closed | Send a template message instead of free text |
131049 | Marketing message blocked — user limit hit | Wait, or send a Utility template |
131026 | Number has no WhatsApp or can’t receive messages | Verify the number is on WhatsApp |
Handling errors in code
Frequently asked
I'm getting error 190 — what do I do?
I'm getting error 190 — what do I do?
Your access token has expired or is invalid. Go to Meta Dashboard → WhatsApp → API Setup and
generate a new temporary token, or create a permanent System User token. See
Access tokens.
I'm getting error 131047 — what does it mean?
I'm getting error 131047 — what does it mean?
The 24-hour customer service window is closed. The customer hasn’t messaged you in the last
24 hours. You must send a pre-approved template instead of a free-form text message.
I'm getting error 131030 — how do I fix it?
I'm getting error 131030 — how do I fix it?
You’re using a test number and the recipient’s phone number isn’t in your test recipient
list. Go to Meta Dashboard → WhatsApp → API Setup → add the number under “To”.
Error 131049 — what is this?
Error 131049 — what is this?
WhatsApp blocked a marketing message because that user has already received too many
marketing messages from businesses. This is a per-user cap Meta enforces. You cannot
override it.

