Skip to content

Instance socket status#

This type webhook contains socket state data (whether instance is ready to send/receive messages)


Webhook parameters#

Parameter Type Description
typeWebhook string Webhook type. For this type notifications the parameter takes on value statusInstanceChanged
instanceData object Instance data
timestamp integer Event timestamp in UNIX format
statusInstance string Instance status. Takes on values:
online - Instance can receive/send messages, socket is open
offline - Instance can't receive/send messages, socet is closed

instanceData object parameter

Parameter Type Description
idInstance integer Instance Id
wid string Account Id in WhatsApp format
typeInstance string Messenger type for instance

Webhook body example#

    "instanceData": {
        "idInstance": 1,
        "wid": "",
    "timestamp": 1586700690,
    "statusInstance": "online"