fff--- he_translation: 'true' title: 'Status of an incoming message on a linked device in the WhatsApp API | GREEN-API' description: '📲 Learn how to track the status of an incoming message on a linked device in the WhatsApp API using GREEN-API. Detailed documentation and simple connection! 🔗✨'
Status of an incoming message on linked devices#
An incoming notification of this type contains the status of the received message when it is read.
Instance setup
To receive incoming notifications about the statuses of incoming messages on linked devices, you need to specify the settings:
-
Disable the
markIncomingMessagesReadedsetting with the SetSettings method by specifying the valuenoin themarkIncomingMessagesReadedfield, or in your personal account in the instance settings you need to set the Mark incoming messages as read fieldto the No position -
Enable the
incomingWebhookandincomingMessageStatusWebhooksettings with the SetSettings method or in your personal account in the instance settings.
For more information on how to find out the status of an incoming message being read on linked devices in WhatsApp, read our article
Notification#
Notification format#
| Parameter | Type | Description |
|---|---|---|
typeWebhook | string | Type of the incoming notification. For notifications of this type the field takes the value incomingMessageStatus |
chatId | string | Chat identifier. The chat with the message for which the status was received. |
instanceData | object | Data about the instance |
wid | string | Account identifier in the WhatsApp* format |
typeInstance | string | Messenger type for the instance |
timestamp | integer | Time of the event in UNIX format |
idMessage | string | Identifier of the sent message or file |
sendByApi | boolean | The flag indicates whether the message was sent from the API or not, takes the values: true , false |
status | string | Status of the sent message or file. The status takes the values: |
read - the message has been read |
Example of a notification body with the read status#
{
"typeWebhook": "incomingMessageStatus",
"chatId": "77757264797@c.us",
"instanceData": {
"idInstance": 1101846414,
"wid": "79770996198@c.us",
"typeInstance": "whatsapp"
},
"timestamp": 1791544385,
"idMessage": "AC7585417E8F3B7A36B359A81A84C68F",
"sendByApi": false,
"status": "read"
}