devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click!
https://waha.devlike.pro/
Apache License 2.0
813 stars 248 forks source link

[Feature Request] (Web) Get labels and get contacts by label id #318

Open zulfio opened 1 month ago

zulfio commented 1 month ago

Engine: whatsapp-web.js Additional information: https://docs.wwebjs.dev/Client.html#getLabels

Is your feature request related to a problem? I need this feature to retrieve available labels and get contacts within those labels.

A clear and concise description of what the problem is. We can use this method to get labels. https://docs.wwebjs.dev/Client.html#getLabels And this method to get contacts by label id. https://docs.wwebjs.dev/Client.html#getChatsByLabelId

A clear and concise description of what you want to happen. NEW ENDPOINT: Get Labels: method: GET URL: /labels

Get Contacts by Label ID: method: GET URL: /label/:label_id

Boffice commented 1 month ago

+1 Will be perfect if you could add label directly to incoming message JSON.

Knowing the labels from incoming message JSON would help separate personal messages from business ones. It would also allow us to better organize customer messages based on their labels.

Also, it gives ability to create diverse workflows with automations.

patron:PLUS

Himanshu1234556 commented 1 week ago

I also need it.

patron:PLUS