Journals · POST
getChatHistory
Read the latest messages of one chat, incoming and outgoing.
Endpoint
POST https://flowapi.pro/waInstance{idInstance}/getChatHistory/{apiTokenInstance}Request body
{
"chatId": "972501234567@c.us",
"count": 20
}Example
curl -X POST "https://flowapi.pro/waInstance{idInstance}/getChatHistory/{apiTokenInstance}" \
-H "Content-Type: application/json" \
-d '{"chatId":"972501234567@c.us","count":20}'Response
[
{
"type": "incoming",
"idMessage": "3EB0C1A7F2D4E8B91C",
"timestamp": 1791819789,
"typeMessage": "textMessage",
"chatId": "972501234567@c.us",
"textMessage": "Is my order ready?"
}
]More journals methods
Try it on your own number
7 days free, no credit card. Then $10 per number per month.