Get Chat / Message History
POSThttps://public.leadpattern.com/chats/conversation
Retrieve the paginated message history for a single conversation.
- A POST used as a read — the filters travel in the body.
Headers
1 fieldAuthorizationstringrequired
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.
Body Parameters
4 fieldswaIdstringrequired
Contact WhatsApp ID.
pagenumberoptionaldefault:
1Page number.
limitnumberoptionaldefault:
20Messages per page.
searchstringoptional
Search within message bodies.
Responses
JSON Response
{
"type": "success",
"data": [
{
"messageId": "wamid.abc123",
"direction": "incoming",
"type": "text",
"message": {
"body": "Hello"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"totalCount": 1
}
}Sample Request Body
{
"waId": "9195XXXXXXXX",
"page": 1,
"limit": 20
}
