cURL
curl --request GET \ --url https://{host}/api/{session}/labels/chats/{chatId} \ --header 'apikey: <api-key>'
{ "chatId": "[email protected]", "labels": [ { "id": "label123", "name": "Clientes VIP", "color": 1 }, { "id": "label456", "name": "Suporte", "color": 2 } ] }
Obter todos os rótulos aplicados a um chat específico
200
400
401
404
curl -X GET https://api.wappfy.com.br/api/my-session/labels/chats/[email protected]
Sua chave de API do Wappfy (obtenha em dash.wappfy.com.br)
ID da Conversa
Label ID
"1"
Label name
"Lead"
Color number, not hex
0
Color in hex
"#ff9485"