Skip to main content

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:

SettingValue
URLYour URL — set it with Set Webhook
MethodJSON 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​

ParameterDescription / Example
status"OK" always.
hook"system" always, for a system update message.
typeSystem 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".
toYour WhatsApp account.
timestampThe timestamp of the information (Unix time, in seconds). A number; for type "messages", a string with the time of the failed message's status.
updateRelevant 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.
issuesRelevant for "issues" type only. Here you can get account issues. If there is an account issue, one of the codes below will be returned.
templateRelevant for "template" type only. Will show the template name.
templateUpdateRelevant for "template" type only. Will show the status code for the relevant template — see the codes below.
templateCategoryRelevant 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.
uniqueRelevant for "messages" type only. This is the unique ID of the message that was sent.
messageUpdateRelevant for "messages" type only. Will show the status code for messages that failed to deliver — see the codes below.
messageToRelevant for "messages" type only. The WhatsApp number (or user id) you tried to send the message to.
nameRelevant for "name" type only (the field is sent only with it). This is the requested display name.
rejectReasonRelevant 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​

CodeExplanation
1Your account is flagged due to spam. Be careful!
2Your account is no longer flagged.
3Your account has been blocked from WhatsApp.
4Your account is back to be active again after being blocked / reviewed.
5The phone number has been removed from the business manager, please contact support.
6The account has been deleted, please contact support.
7Access to the account has been removed by the client, please contact support.
8Your account was sent to review by Meta.

templateUpdate codes​

CodeExplanation
1Your template has been approved and is available to use.
2Template rejected. Reason: wrong format template / too many variables / template is similar to another template that already exists in your account.
3Template rejected. Reason: the template contains content that is violating WhatsApp policy.
4Template rejected. Reason: the template contains content that is marked as spam.
5Template rejected. Reason unknown.
6Template received too many spam reports. You can't use this template for the next 6 hours.
7Template is banned to use due to too many spam reports.
8Template category has been changed.
9The template has been deleted.
10The template is flagged, it received a high amount of negative reports from users. Be careful!
11The template is no longer flagged.

messageUpdate codes​

CodeExplanation
1Server error, try to send the message again.
2Billing issue, please contact support to fix the billing.
3Attached file is incorrect, please try to re-send the message and fix the file.
4Account is blocked for sending messages.
5You have reached your daily limit for sending messages.
6The 'to' and 'from' parameters are the same. You can't send a message to yourself.
7The 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.
8It's been more than 24 hours since the client's last reply, please use a template instead.
9Error unknown, please contact support.
10Variables error, please check the variables used in the template (either a body variable or the header link).
11Context issue in the body or header of the message.
12The template you tried to send was not approved to use by Meta.
13The client can't receive this template message now because their number is marked as "trial". Contact support for more information.
14You can't send more than two marketing templates to the same number within 24 hours. Please wait for the user to reply first.
15The template you tried to send does not exist.
16You are trying to send too many messages in a short period of time. Slow down.
17Permission issue, please contact support.

rejectReason codes​

CodeMeaning
0No rejection. The name was approved to use.
1The name does not relate to the business name.
2The name violates WhatsApp name policy.
3The name is related to alcohol, which is forbidden.
4The name is related to selling digital goods, which is forbidden.
10Rejection reason unknown.

Remarks​

  • A failed message also arrives as an Acknowledge with ack 0 and the same unique; the reason is in the system message above.
  • With systemPhoneAlert in 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​

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.