Skip to main content
GET
List labels
Auth: TokenAccount or TokenInstanceRate-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 an id, 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

string
required
Instance name.

Headers

Error responses

Error 401

Create label

POST /api/chat/tag/:instance

Assign to a chat

POST /api/chat/assignTag/:instance