Skip to main content
Labels are stored through WhatsApp app state updates.

Endpoints

EndpointBodyUse
POST /label/chatjid, labelidApply a label to a chat.
POST /unlabel/chatjid, labelidRemove a label from a chat.
POST /label/messagejid, labelid, messageidApply a label to a message.
POST /unlabel/messagejid, labelid, messageidRemove a label from a message.
POST /label/editlabelid, name, color, actionEdit label metadata.

Apply label to chat

{
  "jid": "[email protected]",
  "labelid": "1"
}

Apply label to message

{
  "jid": "[email protected]",
  "labelid": "1",
  "messageid": "MESSAGE_ID"
}

Edit label

{
  "labelid": "1",
  "name": "Important",
  "color": 1,
  "action": true
}
The current handler always sends the edit action as enabled internally. Test delete or disable behavior before relying on action for removal.