cURL
curl --request POST \ --url https://{host}/api/{session}/labels \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "name": "Lead", "colorHex": "#ff9485", "color": null } '
{ "success": true, "label": { "id": "label123", "name": "Clientes VIP", "color": 1 } }
Criar um novo rótulo para organizar e categorizar chats
200
400
401
curl -X POST https://api.wappfy.com.br/api/my-session/labels \ -H "Content-Type: application/json" \ -d '{ "label": { "name": "Clientes VIP", "color": 1 } }'
Sua chave de API do Wappfy (obtenha em dash.wappfy.com.br)
Nome da sessão (instanceName)
Label name
"Lead"
Color in hex
"#ff9485"
Color number, not hex
null
Label ID
"1"
0