System Messages
Webhook
System messages allow you to receive a webhook when there is a new update
about your account (hook "system").
The types of system messages you can get are:
- Daily limit of outgoing conversations (250, 2000, 10000 etc.).
- Cases where your WhatsApp number is flagged due to spam reports.
- Message template approved or rejected.
- Message template ongoing spam reports.
- Failed messages (messages that you tried to send but they failed).
- Account blocked (due to spam or any other reason).
- Display name approved or rejected.
System messages are turned off by default. You can enable them with system
in the Set Webhook endpoint.
Settings:
| Setting | Value |
|---|---|
| URL | Your URL — set it with Set Webhook |
| Method | JSON via POST |
With every system message, you will get some of the following:
{
"status": "OK",
"hook": "system",
"type": "template",
"to": "972771234567",
"timestamp": 1789900000,
"update": "",
"issues": "",
"template": "order_confirmation",
"templateUpdate": 1,
"templateCategory": 1,
"unique": "",
"messageUpdate": "",
"messageTo": ""
}
The fields that are not relevant to the message's type are empty ("").
Response explained
| Parameter | Description / Example |
|---|---|
status | "OK" always. |
hook | "system" always, for a system update message. |
type | System message type. Values: for daily limit updates: "update"; for account issues: "issues"; for templates update: "template"; for messages update: "messages"; for names update: "name". Another change of the daily limit, such as a lower limit, arrives as "unknown". |
to | Your WhatsApp account. |
timestamp | The timestamp of the information (Unix time, in seconds). A number; for type "messages", a string with the time of the failed message's status. |
update | Relevant for "update" type only. Will show the new daily conversation limit for the WhatsApp account: 50, 250, 1000, 2000, 10000, 100000, or 1000000 for unlimited. An "issues" message about spam flags (codes 1 and 2) shows the current limit here too. |
issues | Relevant for "issues" type only. Here you can get account issues. If there is an account issue, one of the codes below will be returned. |
template | Relevant for "template" type only. Will show the template name. |
templateUpdate | Relevant for "template" type only. Will show the status code for the relevant template — see the codes below. |
templateCategory | Relevant for "template" type only, and will only come when templateUpdate is 1 or 8. Will show the category that this template is set to: 1 — utility, 2 — marketing, 3 — authentication. |
unique | Relevant for "messages" type only. This is the unique ID of the message that was sent. |
messageUpdate | Relevant for "messages" type only. Will show the status code for messages that failed to deliver — see the codes below. |
messageTo | Relevant for "messages" type only. The WhatsApp number (or user id) you tried to send the message to. |
name | Relevant for "name" type only (the field is sent only with it). This is the requested display name. |
rejectReason | Relevant for "name" type only (the field is sent only with it). This is the reason to reject the name, if any — see the codes below. |
issues codes
| Code | Explanation |
|---|---|
| 1 | Your account is flagged due to spam. Be careful! |
| 2 | Your account is no longer flagged. |
| 3 | Your account has been blocked from WhatsApp. |
| 4 | Your account is back to be active again after being blocked / reviewed. |
| 5 | The phone number has been removed from the business manager, please contact support. |
| 6 | The account has been deleted, please contact support. |
| 7 | Access to the account has been removed by the client, please contact support. |
| 8 | Your account was sent to review by Meta. |
templateUpdate codes
| Code | Explanation |
|---|---|
| 1 | Your template has been approved and is available to use. |
| 2 | Template rejected. Reason: wrong format template / too many variables / template is similar to another template that already exists in your account. |
| 3 | Template rejected. Reason: the template contains content that is violating WhatsApp policy. |
| 4 | Template rejected. Reason: the template contains content that is marked as spam. |
| 5 | Template rejected. Reason unknown. |
| 6 | Template received too many spam reports. You can't use this template for the next 6 hours. |
| 7 | Template is banned to use due to too many spam reports. |
| 8 | Template category has been changed. |
| 9 | The template has been deleted. |
| 10 | The template is flagged, it received a high amount of negative reports from users. Be careful! |
| 11 | The template is no longer flagged. |
messageUpdate codes
| Code | Explanation |
|---|---|
| 1 | Server error, try to send the message again. |
| 2 | Billing issue, please contact support to fix the billing. |
| 3 | Attached file is incorrect, please try to re-send the message and fix the file. |
| 4 | Account is blocked for sending messages. |
| 5 | You have reached your daily limit for sending messages. |
| 6 | The 'to' and 'from' parameters are the same. You can't send a message to yourself. |
| 7 | The WhatsApp number you tried to send the message to is using an old WhatsApp app, or did not accept the WhatsApp 'terms of use' within their app. |
| 8 | It's been more than 24 hours since the client's last reply, please use a template instead. |
| 9 | Error unknown, please contact support. |
| 10 | Variables error, please check the variables used in the template (either a body variable or the header link). |
| 11 | Context issue in the body or header of the message. |
| 12 | The template you tried to send was not approved to use by Meta. |
| 13 | The client can't receive this template message now because their number is marked as "trial". Contact support for more information. |
| 14 | You can't send more than two marketing templates to the same number within 24 hours. Please wait for the user to reply first. |
| 15 | The template you tried to send does not exist. |
| 16 | You are trying to send too many messages in a short period of time. Slow down. |
| 17 | Permission issue, please contact support. |
rejectReason codes
| Code | Meaning |
|---|---|
| 0 | No rejection. The name was approved to use. |
| 1 | The name does not relate to the business name. |
| 2 | The name violates WhatsApp name policy. |
| 3 | The name is related to alcohol, which is forbidden. |
| 4 | The name is related to selling digital goods, which is forbidden. |
| 10 | Rejection reason unknown. |
Remarks
- A failed message also arrives as an Acknowledge
with
ack0 and the sameunique; the reason is in the system message above. - With
systemPhoneAlertin Set Webhook, you can also get system alerts to your phone. - An example of every system message type is under Webhook payload below.
Webhook payload
Your response
- 200
- default
Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored.
Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again.