Labels
Assign Label to Chat
Add or remove labels from WhatsApp chats and contacts.
POST
Overview
You can assign labels to chats or remove them. This helps you organize and categorize your conversations for better management.Labels are only available for WhatsApp Business accounts. You must first create labels in your WhatsApp Business app before you can assign them via the API.
Authentication
This endpoint requires authentication via theapikey header.
string
required
Your Evolution API key for authentication.
Path Parameters
string
required
The name of your WhatsApp Business instance.
Request Body
string
required
The phone number or chat JID to label. Can be in format “5511999999999” or “5511999999999@s.whatsapp.net”.
string
required
The ID of the label to add or remove. You can get label IDs from the
/label/findLabels endpoint.string
required
The action to perform. Must be one of:
add: Add the label to the chatremove: Remove the label from the chat
Response
boolean
Whether the operation completed successfully.
string
The chat/contact that was labeled.
string
The label ID that was added or removed.
string
The action that was performed (“add” or “remove”).
Usage Notes
You can assign multiple labels to the same chat by calling this endpoint multiple times with different label IDs.