Acknowledge
Webhook
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 endpoint.
Settings:
| Setting | Value |
|---|---|
| URL | Your URL — set it with Set Webhook |
| Method | JSON via POST |
With every acknowledge message, you will receive the following:
{
"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 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. |
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.
Remarks
- The order of the acknowledges is not guaranteed: a delivered acknowledge
(
ack2) may arrive before the sent one (ack1). - The acknowledges of messages sent from the WhatsApp Business app of a
coexistence account (Outgoing Messages)
arrive here too, with the same
unique. - An example of every acknowledge 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.