Label

Labels of a chat

GET
/chats/{chatId}/labels

May be served from the short cache (Age header): right after PUT /chats/{chatId}/labels, use the PUT response.

Otorisasi

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).

Parameter path

chatId*string

The chat: the chat_id from GET /chats or from the webhooks (...@c.us, ...@lid, ...@g.us), or the phone number with country code and area code. Brazilian phone numbers are checked on WhatsApp, as when sending.

Body respons

The chat's labels.

application/json
  1. response
data*array<>
curl -X GET 'https://app.wappfy.io/api/v1/chats/5581999999999/labels' \  -H 'X-Api-Key: wpf_YOUR_KEY'
{  "data": [    {      "id": "string",      "name": "string",      "color": 0,      "color_hex": "string"    }  ]}