Skip to main content
POST
Create label
Auth: TokenAccount or TokenInstanceRate-limit: Global (100/min) • Idempotent: no

Description

Creates a label on the instance. The id is allocated by the API (sequential) and then propagated to WhatsApp via app state, it may take 1 to 2 seconds to appear on the phone.
color is optional (default 0) and accepts an integer between 0 and 10, which corresponds to the native WhatsApp Business palette.

Examples

Minimum

Creates the label with name only, without color. The server assigns color: 0 by default and generates a sequential id returned in the response.

With color

Creates the “VIP” label using shade 5 of the WhatsApp Business palette via color: 5 (accepted range: 0 to 10), enabling visual differentiation between labels on the phone.

Success response

The tag object carries the id generated by WhatsApp (use it in tags-assign/tags-unassign), the saved name, the applied color (0 when the client did not send it or sent it outside the 0–10 range), and the label type. deleted stays false on creations.
200 OK

Path parameters

string
required
Instance name.

Headers

Request body

string
required
Label name. Cannot be empty after TrimSpace.
int
default:"0"
Label color. Accepts integers between 0 and 10, each index maps to a color from the native WhatsApp Business palette:The values above reflect the current WhatsApp Business palette (it may change in future versions of the app, the index is stable, the actual shade is defined by the WhatsApp client). Values outside the 010 range are silently normalized to 0.

Error responses

Error 400

List labels

Confirm the newly created id.

Assign to a chat

Apply the label after creating it.