Description
This endpoint allows you to add or remove a label from a specific chat, allowing you to organize and categorize your chats.
URL Parameters
WhatsApp unique session ID
ID of the chat (JID of the contact or group)
Request Body
ID of the label to be added or removed
Action to be executed: “add” or “remove”
Response
Indicates if the operation was executed successfully
{
"success": true,
"chatId": "[email protected]",
"labelId": "label123",
"action": "add"
}
Status Codes
200 - Operation executed successfully
400 - Invalid parameters
401 - Unauthorized
404 - Chat or label not found
Usage Example
curl -X PUT https://api.wappfy.com.br/api/my-session/labels/chats/[email protected] \
-H "Content-Type: application/json" \
-d '{
"labelId": "label123",
"action": "add"
}'
Your Wappfy API key (get it at dash.wappfy.com.br)