curl --request POST \
--url https://{server-url}/chat/findMessages/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"where": {
"key": {
"remoteJid": "<string>"
}
}
}'
Find all messages
curl --request POST \
--url https://{server-url}/chat/findMessages/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"where": {
"key": {
"remoteJid": "<string>"
}
}
}'
Your authorization key header
ID of the instance to connect