Labels are a WhatsApp Business feature that lets you tag and organize chats. You can create labels with custom names and colors, then assign them to one or more chats to group related conversations. Labels are visible in the WhatsApp Business app and help your team manage large volumes of conversations.Documentation Index
Fetch the complete documentation index at: https://docs.usetitan.app/llms.txt
Use this file to discover all available pages before exploring further.
Labels are only available for sessions linked to WhatsApp Business accounts. Standard consumer accounts do not support labels.
Label object
Unique label identifier assigned by WhatsApp.
Label display name.
Label color as a palette index (integer). WhatsApp maps these indices to specific colors in the UI.
List labels
GET /api/sessions/{session}/labels
Returns all labels for the session account.
Session name.
Create a label
POST /api/sessions/{session}/labels
Creates a new label for the session account.
Session name.
Label display name.
Color palette index. WhatsApp supports a fixed set of color indices for labels.
Update a label
PUT /api/sessions/{session}/labels/{labelId}
Updates the name or color of an existing label.
Session name.
Label ID.
New label display name.
New color palette index.
Delete a label
DELETE /api/sessions/{session}/labels/{labelId}
Deletes a label. Existing chat assignments are removed automatically.
Session name.
Label ID.
Assign a label to chats
POST /api/sessions/{session}/labels/{labelId}/chats
Assigns a label to one or more chats.
Session name.
Label ID to assign.
Array of chat JIDs to assign the label to.
Remove a label from chats
DELETE /api/sessions/{session}/labels/{labelId}/chats
Removes a label from one or more chats.
Session name.
Label ID to remove.
Array of chat JIDs to remove the label from.