GET
Get Chats
List all chats known to the connected session (synced chats, groups, and chats with recent messages).
API endpoint
https://waclient.com/api/get_chatsExample:
curl -X GET \
'https://waclient.com/api/get_chats' \
-G \
--data-urlencode 'instance_id=6A4B02A1XXXX' \
--data-urlencode 'access_token=EMCUH3NQQK8YXXXX'Response
{
"status": "success",
"message": "Success",
"data": {
"chats": [
{
"id": "[email protected]",
"name": "Mohamed",
"unreadCount": 0
}
],
"count": 1
}
}| Parameter | Description |
|---|---|
| instance_id | Your instance ID |
| access_token | Your access token |