[go: up one dir, main page]

Skip to content

Device status#

Notification is temporarily not working

Incoming webhook of this type contains data on battery level and the device running WhatsApp Business application

Webhook#

Webhook parameters#

Parameter Type Description
typeWebhook string Incoming webhook type. For webhooks of this type the parameter takes on the value deviceInfo
instanceData object Instance data
timestamp integer Event timestamp in UNIX format
deviceData object Device data

instanceData object parameters

Parameter Type Description
idInstance integer Instance Id. The size of the integer is int64. Values ​​range include from 1 to 10 digits
wid string Account Id in WhatsApp format
typeInstance string Instance messenger type

deviceData object parameters

Parameter Type Description
platform string Operating system of the device running WhatsApp Business application
deviceManufacturer string Device manufacturer
deviceModel string Device model
osVersion string Operating system version
waVersion string Application version WhatsApp Business or WhatsApp
battery integer Battery level

Webhook body example#

{
    "typeWebhook": "deviceInfo",
    "instanceData": {
        "idInstance": 1234,
        "wid": "11001234567@c.us",
        "typeInstance": "whatsapp"
    },
    "timestamp": 1586700802,
    "deviceData": {
        "platform": "iphone",
        "deviceManufacturer": "Apple",
        "deviceModel": "iPhone 11",
        "osVersion": "13.4.1",
        "waVersion": "2.20.42",
        "battery": 90
    }
}