Reading
Chats
GET
/v1/chatsList chats
GET https://api.api-supp.com/v1/chats
Chats sorted by latest activity, each with its most recent message, so you can draw a "recent conversations" list in one call.
| Param | Type | Default | Notes |
|---|---|---|---|
q | string | — | Search names and JIDs |
sort | string | last_active | Or name for alphabetical |
limit | int | 100 | |
offset | int | 0 |
json
{
"chats": [ {
"jid": "14155550132@s.whatsapp.net", "name": "Dana", "last_message_time": "...",
"last_message": "...", "last_sender": "...", "last_is_from_me": 0
} ],
"count": 100, "limit": 100, "offset": 0
}One chat
GET https://api.api-supp.com/v1/chats/:jid returns one chat's details, or 404.