data.
Webhooks deliver changes. When it connects, the session syncs all of the
account’s labels and associations, but that sync does not produce webhooks
(it would be the same state resent on every reconnection). For the full state, use
GET /labels/list and GET /labels/contact-labels.labels.edit
List type.
custom for lists created by the user; WhatsApp’s own
lists come as unread (Unread), favorites (Favorites), groups
(Groups), predefined (suggested by the app, such as “New order”), among others.
Older labels may come as none.labels.association.chat
JID of the chat (
...@s.whatsapp.net or ...@g.us). When the contact’s
number is not known to the session, it comes as a LID (...@lid).labels.association.message
Same fields as labels.association.chat, plus the
message identifier.
