Labels
Manage WhatsApp Business labels with Wazend: create, list, update, delete and assign labels to chats.
Labels are available in WhatsApp Business and let you organize your chats. With Wazend you can create, list, update and delete labels, as well as assign them to chats.
List labels
GET /api/{session}/labels[
{
"id": "1",
"name": "Cliente VIP",
"color": 1,
"colorHex": "#FF0000"
}
]Create label
POST /api/{session}/labels{
"name": "Cliente VIP",
"color": 1
}Update label
PUT /api/{session}/labels/{labelId}{
"name": "Cliente preferente",
"color": 2
}Delete label
DELETE /api/{session}/labels/{labelId}Chats and labels
Get the chats that have a label:
GET /api/{session}/labels/{labelId}/chatsGet the labels assigned to a chat:
GET /api/{session}/labels/chats/{chatId}Assign or remove labels from a chat (send the full list; an empty array removes all):
PUT /api/{session}/labels/chats/{chatId}{
"labels": [
{ "id": "1" }
]
}