Skip to main content
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 the apikey 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 chat
  • remove: 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.
Use labels to implement automated chat categorization workflows. For example, automatically label chats based on message content or customer behavior.
Attempting to add a label that’s already assigned to a chat will not cause an error, but it won’t create a duplicate.

Common Use Cases

Customer Status Tracking

Priority Management

Get All Labels

First, fetch available labels:
This returns all labels with their IDs, which you can then use to assign to chats.