Chat
List labels
Lists every label registered on the instance
GET
List labels
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Returns every label known to the instance, including those created via API and those imported through WhatsApp app state. Each label carries anid, name, color (native WhatsApp palette), type, and deleted flag.
color is an integer between 0 and 10 that maps to the official WhatsApp Business colors. Tags marked with deleted=true still appear in the list until the sync removes them for good.Example
Success response
tags is the array of labels known to the WhatsApp Business account; total echoes the size. Each entry brings id (use in tags-assign/tags-unassign/tags-delete), name, color (0–10), and type. Labels marked with deleted: true represent removals pending propagation.
200 OK
Path parameters
Instance name.
Headers
| Name | Required | Example | Description |
|---|---|---|---|
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
Error responses
| HTTP | error.message | When it happens |
|---|---|---|
| 400 | Instance name is required | Empty :instance. |
| 401 | Invalid token | , |
| 404 | Instance not found | , |
| 503 | Instance is not connected to WhatsApp | , |
Error 401
Related
Create label
POST /api/chat/tag/:instanceAssign to a chat
POST /api/chat/assignTag/:instance