cURL
curl --request GET \ --url https://{host}/api/{session}/labels/{labelId}/chats \ --header 'apikey: <api-key>'
{ "labelId": "label123", "labelName": "VIP Clients", "chats": [ { "id": "[email protected]", "name": "John Silva", "lastMessage": "Hello!", "timestamp": 1699999999 }, { "id": "[email protected]", "name": "Maria Santos", "lastMessage": "Thank you!", "timestamp": 1699999998 } ] }
Get all chats that have a specific label
200
400
401
404
curl -X GET https://api.wappfy.com.br/api/my-session/labels/label123/chats
Your Wappfy API key (get it at dash.wappfy.com.br)