Aller au contenu principal

Message Status Updated

attention

Note that message deliver notifications are only available on WhatsApp Business API and WhatsApp QR API.

info

Events are only forwarded for outgoing messages. Incoming messages won't trigger any status updates.

This event will be sent whenever a message status gets an update. This can be one of the following values:

  • enqueued
  • sent
  • delivered
  • read
  • failed
  • mismatch
  • deleted

Message Statuses

Enqueued

Sent when the message is successfully sent to the WhatsApp Business API client or to the QR API client.

Sent

This status is sent whenever the message is sent to the end-user device.

Delivered

Sent when the message has finally been delivered to the end-user device.

Read

Represents that the message has been successfully read by the end-user.

Failed

This status is emitted whenever the delivery of the message wasn't possible. In the inner payload the failure reason is also specified (e.g. "number does not exist on WhatsApp")

Mismatch

This event status is sent whenever WhatsApp Business API performs a phone number correction automatically. The corrected phone number identifier will be present inside the inner payload of the event.

Deleted

attention

This event has been deprecated since it's not supported anymore by Meta.

Represents a message deletion from the end-user, both for "delete only for me" and "delete for everyone".

Event Name

message_status_updated

Payload Fields

FieldTypeDescription
uuidstringThe unique identifier of the message
statusstringThe delivery status of the message
metadataObjectMetadata attached to the message (if present)
messageStatusPayloadJSONThe raw message status payload

Example Payload

payload.json
{
"event": "message_status_updated",
"payload": {
"uuid": "adf3d1216d4c4dcd908199d6700f2381",
"status": "read",
"messageStatusPayload":{
"id":"gBGGM2MSRxl_Aglqmg5KQXU7ABC",
"gsId":"2b34bfb7-2631-4763-89fb-1b3c65a4babc",
"type":"read",
"payload":{
"ts":1686563913
},
"destination":"1122334455"
}
}
}