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

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

# Acknowledge

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

For every message or template you send, you can get an acknowledge if the
recipient received your message or not (`hook` "update"). There are four
available statuses: failed, sent, delivered, read.

Acknowledges are turned off by default. You can enable them with `readStatus`
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 acknowledge message, you will receive the following:**

```json
{
  "status": "OK",
  "hook": "update",
  "unique": "19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ",
  "to": "972771234567",
  "from": "972501234567",
  "from_id": "IL.1605856887361213",
  "country": "IL",
  "timestamp": "1789900061",
  "conversationTimeLeft": 1380,
  "isBilledTemplate": 0,
  "newTemplateType": 0,
  "isNewConversation": 0,
  "newConversationType": 0,
  "ack": 3
}
```

### Response explained

| Parameter | Description / Example |
| --- | --- |
| `status` | "OK" always. |
| `hook` | "update" always, for an acknowledge update message. |
| `unique` | The same unique ID as the original message — the `unique` you received when you sent it. This parameter allows you to know which message was seen. |
| `to` | Your WhatsApp account. |
| `from` | The contact that you sent the message to. If you messaged a normal international number, this will return the number. If you messaged a user id (2 letters country code + dot + 16 digits), this will return this value. |
| `from_id` | The user id of the contact that you sent the message to. Null when it is not known. |
| `country` | The country code (two letters) of the contact that you sent the message to, taken from their user id. Null when there is no user id. |
| `timestamp` | The timestamp of the ack (Unix time, in seconds, as a string). |
| `conversationTimeLeft` | The time (in minutes) that is left for the conversation between you and the end user to finish, in case an incoming conversation is open between you and the client; otherwise 0. A conversation is a 24 hours session. |
| `isBilledTemplate` | This value shows if a new billed template was sent to the client — see below. |
| `newTemplateType` | In case a new billed template is created under `isBilledTemplate`, here you can know the type of the template — see below. |
| `isNewConversation` | This value is no longer in use. It is always 0. |
| `newConversationType` | This value is no longer in use. It is always 0. |
| `ack` | Acknowledge type — see below. |

#### `isBilledTemplate`

This value shows if a new billed template was sent to the client. You will
get this only once per new billed template: 1 arrives on its first delivered
(`ack` 2) or read (`ack` 3) update.

- If this value is 1, it means a new template is billed.
- If this value is 0, it means there is no new billing event.

A billed template is:

- any marketing template you send.
- any utility template you send if no incoming 24 hours session is open with
  the client.
- any authentication template you send.

#### `newTemplateType`

| Value | Explanation |
| --- | --- |
| 0 | No billing template |
| 1 | Utility template. Authentication templates currently arrive as 1 too. |
| 2 | Marketing template |
| 3 | Authentication template (not sent at the moment — see 1) |

#### `ack`

| Value | Explanation |
| --- | --- |
| 0 | Message failed to deliver. For more information, check the [System Messages](https://docs.99digital.co.il/whatsapp-api/webhook/system-messages) of type "messages" with the same `unique` (needs `system` 1 in Set Webhook). |
| 1 | Acknowledge that the message was **sent** (one gray check mark). |
| 2 | Acknowledge that the recipient received the message (two gray check marks). Message marked as **delivered**. |
| 3 | Acknowledge that the recipient read the message (two blue check marks). Message marked as **read**. This ack is only available if the recipient allowed it within their WhatsApp privacy settings inside the mobile app. |

:::info[Important note]
The word "conversation" can be a little confusing regarding how it is counted
and billed. Please see this page for more information:
[Template, conversation and Message](https://docs.99digital.co.il/whatsapp-api/information/template-conversation-and-message).
:::

### Remarks

- The order of the acknowledges is not guaranteed: a delivered acknowledge
  (`ack` 2) may arrive before the sent one (`ack` 1).
- The acknowledges of messages sent from the WhatsApp Business app of a
  coexistence account ([Outgoing Messages](https://docs.99digital.co.il/whatsapp-api/webhook/outgoing-messages))
  arrive here too, with the same `unique`.
- An example of every acknowledge 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 | "update" always, for an acknowledge update message. Always `update`. |
| `unique` | string | Yes | The same unique ID as the original message — the `unique` you received when you sent it. This parameter allows you to know which message was seen. Example: `19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ`. |
| `to` | string | Yes | Your WhatsApp account. Example: `972771234567`. |
| `from` | string | Yes | The contact that you sent the message to. If you messaged a normal international number, this will return the number. If you messaged a user id (2 letters country code + dot + 16 digits), this will return this value. Example: `972501234567`. |
| `from_id` | string \| null | Yes | The user id of the contact that you sent the message to. Null when it is not known. Example: `null`. |
| `country` | string \| null | Yes | The country code (two letters) of the contact that you sent the message to, taken from their user id. Null when there is no user id. Example: `null`. |
| `timestamp` | string | Yes | The timestamp of the ack (Unix time, in seconds, as a string). Example: `1789900061`. |
| `conversationTimeLeft` | integer | Yes | The time (in minutes) that is left for the conversation between you and the end user to finish, in case an incoming conversation is open between you and the client; otherwise 0. A conversation is a 24 hours session. Example: `1380`. |
| `isBilledTemplate` | integer | Yes | This value shows if a new billed template was sent to the client. You will get 1 only once per new billed template: on its first delivered (`ack` 2) or read (`ack` 3) update. A billed template is: - any marketing template you send. - any utility template you send if no incoming 24 hours session is open with the client. - any authentication template you send. One of: `0` — No new billing event; `1` — A new template is billed — see `newTemplateType`. Example: `0`. |
| `newTemplateType` | integer | Yes | In case a new billed template is created under `isBilledTemplate`, here you can know the type of the template. One of: `0` — No billing template; `1` — Utility template. Authentication templates currently arrive as 1 too; `2` — Marketing template; `3` — Authentication template (not sent at the moment — see 1). Example: `0`. |
| `isNewConversation` | integer | Yes | **Deprecated.** This value is no longer in use. It is always 0. Example: `0`. |
| `newConversationType` | integer | Yes | **Deprecated.** This value is no longer in use. It is always 0. Example: `0`. |
| `ack` | integer | Yes | Acknowledge type. One of: `0` — Message failed to deliver. For more information, check the system message of type "messages" with the same `unique` (needs `system` 1); `1` — Acknowledge that the message was **sent** (one gray check mark); `2` — Acknowledge that the recipient received the message (two gray check marks). Message marked as **delivered**; `3` — Acknowledge that the recipient read the message (two blue check marks). Message marked as **read**. This ack is only available if the recipient allowed it within their WhatsApp privacy settings inside the mobile app. Example: `3`. |

### Example: Ack 1 — sent

The message was sent (one gray check mark).

```json
{
  "status": "OK",
  "hook": "update",
  "unique": "19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ",
  "to": "972771234567",
  "from": "972501234567",
  "from_id": null,
  "country": null,
  "timestamp": "1789900061",
  "conversationTimeLeft": 1380,
  "isBilledTemplate": 0,
  "newTemplateType": 0,
  "isNewConversation": 0,
  "newConversationType": 0,
  "ack": 1
}
```

### Example: Ack 2 — delivered

The recipient received the message (two gray check marks).

```json
{
  "status": "OK",
  "hook": "update",
  "unique": "19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ",
  "to": "972771234567",
  "from": "972501234567",
  "from_id": null,
  "country": null,
  "timestamp": "1789900061",
  "conversationTimeLeft": 1380,
  "isBilledTemplate": 0,
  "newTemplateType": 0,
  "isNewConversation": 0,
  "newConversationType": 0,
  "ack": 2
}
```

### Example: Ack 3 — read

The recipient read the message (two blue check marks).

```json
{
  "status": "OK",
  "hook": "update",
  "unique": "19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ",
  "to": "972771234567",
  "from": "972501234567",
  "from_id": null,
  "country": null,
  "timestamp": "1789900061",
  "conversationTimeLeft": 1380,
  "isBilledTemplate": 0,
  "newTemplateType": 0,
  "isNewConversation": 0,
  "newConversationType": 0,
  "ack": 3
}
```

### Example: Ack 0 — failed

The message failed to deliver. The reason arrives as a system message of type "messages".

```json
{
  "status": "OK",
  "hook": "update",
  "unique": "19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ",
  "to": "972771234567",
  "from": "972501234567",
  "from_id": null,
  "country": null,
  "timestamp": "1789900061",
  "conversationTimeLeft": 1380,
  "isBilledTemplate": 0,
  "newTemplateType": 0,
  "isNewConversation": 0,
  "newConversationType": 0,
  "ack": 0
}
```

### Example: Billed template

A marketing template opened a new billed conversation: sent once, with its first delivered or read update.

```json
{
  "status": "OK",
  "hook": "update",
  "unique": "19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ",
  "to": "972771234567",
  "from": "972501234567",
  "from_id": null,
  "country": null,
  "timestamp": "1789900061",
  "conversationTimeLeft": 0,
  "isBilledTemplate": 1,
  "newTemplateType": 2,
  "isNewConversation": 0,
  "newConversationType": 0,
  "ack": 2
}
```

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