💬 Chats

Get chats overview. Includes all necessary things to build UI "your chats overview" page - chat id, name, picture, last message. Sorting by last message timestamp

get/api/{session}/chats/overview

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/{session}/chats/overview
  • Auth: API key in header X-Api-Key

Path parameters

sessionstring required

Session name

Query parameters

mergeboolean
Example:true

Merge LID (@lid) and phone-number (@c.us) chats referencing the same contact

limitnumber
offsetnumber
idsstring[]

Filter by chat ids

[
  "111111111@c.us"
]

Response

idstring required
namestring nullable required
picturestring nullable required
lastMessageobject required
_chatobject required

Changes

No recorded changes to this operation across all 1 revision of this API.