API docsLog inCreate account
Reading

List messages

GET/v1/messages

The main way to read history. Returns messages newest first, with optional filters.

Request

GET https://api.api-supp.com/v1/messages

ParamTypeDefaultNotes
chat_jidstring—One conversation. Phone and LID forms both work
sincestring—Messages at or after this time
beforestring—Messages at or before this time
qstring—Text search in the message content (case-insensitive)
senderstring—Exact sender
media_typestring—image, video, audio, document, sticker (also poll_vote, see polls)
is_from_mebool—true sent by you, false received
include_groupsboolfalseGroups are left out unless you set this
limitint100Max 1000
offsetint0
bash
curl "https://api.api-supp.com/v1/messages?chat_jid=14155550132%40s.whatsapp.net&limit=20" \
  -H "Authorization: Bearer wat_YOUR_TOKEN"

Response

json
{ "messages": [ /* each with id, chat_jid, sender, content, timestamp, is_from_me, chat_name, media fields */ ], "count": 42, "limit": 100, "offset": 0 }

Search works per request; there is no global index, so very large histories get slower.