post https://waapi.app/api/v1/instances//client/action/fetch-messages
Retrieve messages from a specific chat with optional filtering and media inclusion
Log in to see full request history
Response
Retrieve messages from a specific chat with optional filtering and media inclusion
xxxxxxxxxx
curl --request POST \
--url https://waapi.app/api/v1/instances/id/client/action/fetch-messages \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
24{
"status": "success",
"instanceId": "1",
"data": [
{
"message": {
"id": {
"fromMe": false,
"remote": "1234567890@c.us",
"id": "ABCD1234EFGH5678IJKL",
"_serialized": "false_1234567890@c.us_ABCD1234EFGH5678IJKL"
},
"body": "Hello world",
"type": "chat",
"timestamp": 1738861768,
"from": "1234567890@c.us",
"to": "0987654321@c.us",
"hasMedia": false,
"ack": 0
},
"media": "string"
}
]
}