Skip to main content

connection.open

A WhatsApp device successfully connected and authenticated. Sent on every successful connect, including reconnects after an outage.

connection.closed

A WhatsApp device disconnected from the server. Short interruptions are retried automatically and are not reported. When the device stays unreachable (for about an hour) or must be paired again, data says why: reason, the WhatsApp statusCode and its message. Reconnects keep being attempted every 30 minutes unless WhatsApp refused the credentials or the device must be paired again; a connection.open follows when the device is back.

connection.auth

A QR or Pairing code was generated for device pairing. Can either contain qrCode or pairingCode.

connection.timeout

QR or Pairing code timed out without successful pairing.

connection.logout

A connection closed by logout

message.received

A new message was received by the WhatsApp instance.

message.sent

A message was sent from the WhatsApp device.

message.updated

A message was edited.

message.deleted

A message was deleted.

call

A whatsapp call was received, accepted, rejected or timed out. Will almost always come with lid.