<!-- Generated from the canonical 99 Digital API documentation. Do not edit this file. -->

Canonical page: https://docs.99digital.co.il/whatsapp-api/webhook/system-messages

# System Messages

**Webhook.** Sent to the webhook URL you configure.

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](https://docs.99digital.co.il/whatsapp-api/webhook/set-webhook) endpoint.

**Settings:**

| Setting | Value |
| --- | --- |
| URL | Your URL — set it with [Set Webhook](https://docs.99digital.co.il/whatsapp-api/webhook/set-webhook) |
| Method | JSON via POST |

**With every system message, you will get some of the following:**

```json
{
  "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](https://docs.99digital.co.il/whatsapp-api/webhook/acknowledge)
  with `ack` 0 and the same `unique`; the reason is in the system message
  above.
- With `systemPhoneAlert` in [Set Webhook](https://docs.99digital.co.il/whatsapp-api/webhook/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

Content type: `application/json` (required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | string | Yes | "OK" always. One of: `OK`. |
| `hook` | string | Yes | "system" always, for a system update message. Always `system`. |
| `type` | string | Yes | System message type. One of: `update` — Daily limit updates — see `update`; `issues` — Account issues — see `issues`; `template` — Templates update — see `template`, `templateUpdate` and `templateCategory`; `messages` — Messages update — a message you sent failed; see `unique`, `messageUpdate` and `messageTo`; `name` — Display name update — see `name` and `rejectReason`; `unknown` — Another change of the daily limit, such as a lower limit — see `update`. Example: `template`. |
| `to` | string | Yes | Your WhatsApp account. Example: `972771234567`. |
| `timestamp` | integer \| string | Yes | 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. Example: `1789900000`. |
| `update` | integer \| string | Yes | 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. Example: ``. |
| `issues` | integer \| string | Yes | Relevant for "issues" type only. Here you can get account issues. If there is an account issue, one of the following codes will be returned. One of: `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; `` — Empty — another type, or an account update that needs no action. Example: ``. |
| `template` | string | Yes | Relevant for "template" type only. Will show the template name. Example: `order_confirmation`. |
| `templateUpdate` | integer \| string | Yes | Relevant for "template" type only. Will show the status code for the relevant template. One of: `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; `` — Empty — another type. Example: `1`. |
| `templateCategory` | integer | No | 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. One of: `1` — Utility; `2` — Marketing; `3` — Authentication. Example: `1`. |
| `unique` | string | Yes | Relevant for "messages" type only. This is the unique ID of the message that was sent. Example: ``. |
| `messageUpdate` | integer \| string | Yes | Relevant for "messages" type only. Will show the status code for messages that failed to deliver. One of: `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; `` — Empty — another type. Example: ``. |
| `messageTo` | string | Yes | Relevant for "messages" type only. The WhatsApp number (or user id) you tried to send the message to. Example: ``. |
| `name` | string | No | Relevant for "name" type only (the field is sent only with it). This is the requested display name. Example: `99 Digital`. |
| `rejectReason` | integer | No | Relevant for "name" type only (the field is sent only with it). This is the reason to reject the name, if any. One of: `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. Example: `0`. |

### Example: Message failed

A message you sent failed: `messageUpdate` is the reason. Here, more than 24 hours since the client's last reply.

```json
{
  "status": "OK",
  "hook": "system",
  "type": "messages",
  "to": "972771234567",
  "timestamp": "1789900061",
  "update": "",
  "issues": "",
  "template": "",
  "templateUpdate": "",
  "unique": "19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ",
  "messageUpdate": 8,
  "messageTo": "972501234567"
}
```

### Example: Template approved

Your template was approved; `templateCategory` is its category.

```json
{
  "status": "OK",
  "hook": "system",
  "type": "template",
  "to": "972771234567",
  "timestamp": 1789900000,
  "update": "",
  "issues": "",
  "template": "order_confirmation",
  "templateUpdate": 1,
  "unique": "",
  "messageUpdate": "",
  "messageTo": "",
  "templateCategory": 1
}
```

### Example: Template rejected

Your template was rejected (here: wrong format / too many variables / similar to another template).

```json
{
  "status": "OK",
  "hook": "system",
  "type": "template",
  "to": "972771234567",
  "timestamp": 1789900000,
  "update": "",
  "issues": "",
  "template": "summer_sale",
  "templateUpdate": 2,
  "unique": "",
  "messageUpdate": "",
  "messageTo": ""
}
```

### Example: Template category

Meta changed the category of your template; `templateCategory` is the new one.

```json
{
  "status": "OK",
  "hook": "system",
  "type": "template",
  "to": "972771234567",
  "timestamp": 1789900000,
  "update": "",
  "issues": "",
  "template": "order_confirmation",
  "templateUpdate": 8,
  "unique": "",
  "messageUpdate": "",
  "messageTo": "",
  "templateCategory": 2
}
```

### Example: Daily limit

Your daily limit of new conversations changed; `update` is the new limit.

```json
{
  "status": "OK",
  "hook": "system",
  "type": "update",
  "to": "972771234567",
  "timestamp": 1789900000,
  "update": 10000,
  "issues": "",
  "template": "",
  "templateUpdate": "",
  "unique": "",
  "messageUpdate": "",
  "messageTo": ""
}
```

### Example: Account flagged

Your number is flagged due to spam reports; `update` shows the current daily limit.

```json
{
  "status": "OK",
  "hook": "system",
  "type": "issues",
  "to": "972771234567",
  "timestamp": 1789900000,
  "update": 2000,
  "issues": 1,
  "template": "",
  "templateUpdate": "",
  "unique": "",
  "messageUpdate": "",
  "messageTo": ""
}
```

### Example: Account blocked

Your account has been blocked from WhatsApp.

```json
{
  "status": "OK",
  "hook": "system",
  "type": "issues",
  "to": "972771234567",
  "timestamp": 1789900000,
  "update": "",
  "issues": 3,
  "template": "",
  "templateUpdate": "",
  "unique": "",
  "messageUpdate": "",
  "messageTo": ""
}
```

### Example: Display name

Your display name was approved (`rejectReason` 0).

```json
{
  "status": "OK",
  "hook": "system",
  "type": "name",
  "to": "972771234567",
  "timestamp": 1789900000,
  "update": "",
  "issues": "",
  "template": "",
  "templateUpdate": "",
  "unique": "",
  "messageUpdate": "",
  "messageTo": "",
  "name": "99 Digital",
  "rejectReason": 0
}
```

## Responses

### 200 — 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.

### default — 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.
