Étiquettes
Create label
POST
WhatsApp Business only: on a regular number, WhatsApp rejects it (422 etiquetas_indisponiveis).
X-Api-Key: wpf_YOUR_KEYThe connection's API key (wpf_...), generated in the dashboard.
Authorization: Bearer wpf_YOUR_KEYThe same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).
Idempotency-Key?stringOptional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.
application/json- body
name*stringThe label name.
Longueur
1 <= length <= 100color*integerThe WhatsApp color index, from 0 to 19 (0 #ff9485, 1 #64c4ff, 2 #ffd429, 3 #dfaef0, 4 #99b6c1, 5 #55ccb3...).
Plage
0 <= value <= 19The created label.
application/json- 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" }}
