post https://waapi.app/api/v1/instances//client/action/get-chats
Retrieves a list of all chats with their latest messages and metadata. Supports pagination.
Log in to see full request history
Response
Retrieves a list of all chats with their latest messages and metadata. Supports pagination.
xxxxxxxxxx
curl --request POST \
--url https://waapi.app/api/v1/instances/id/client/action/get-chats \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
35}
{
"instanceId": "1",
"data": [
{
"id": {
"server": "c.us",
"user": "xxxxxxxxxxxx",
"_serialized": "xxxxxxxxxxxx@c.us"
},
"name": "Contact Name",
"isGroup": false,
"isReadOnly": false,
"unreadCount": 0,
"timestamp": 1738947027,
"archived": false,
"pinned": false,
"isMuted": false,
"muteExpiration": 0,
"lastMessage": {
"id": {
"fromMe": true,
"remote": "xxxxxxxxxxxx@c.us",
"id": "XXXXXXXXXXXXXXXXXXXX",
"_serialized": "true_xxxxxxxxxxxx@c.us_XXXXXXXXXXXXXXXXXXXX"
},