Étiquettes

Create label

POST
/labels

WhatsApp Business only: on a regular number, WhatsApp rejects it (422 etiquetas_indisponiveis).

Autorisation

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

Paramètres d'en-tête

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

Corps de la requête

application/json
  1. body
name*string

The label name.

Longueur1 <= length <= 100
color*integer

The WhatsApp color index, from 0 to 19 (0 #ff9485, 1 #64c4ff, 2 #ffd429, 3 #dfaef0, 4 #99b6c1, 5 #55ccb3...).

Plage0 <= value <= 19

Corps de la réponse

The created label.

application/json
  1. response
data*
curl -X POST 'https://app.wappfy.io/api/v1/labels' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "name": "Cliente novo",  "color": 1}'
{  "data": {    "id": "string",    "name": "string",    "color": 0,    "color_hex": "string"  }}