curl --request POST \
--url https://{server-url}/chat/markChatUnread/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": [
{
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
],
"chat": "<string>"
}'
{
"message": "Read messages",
"read": "success"
}
curl --request POST \
--url https://{server-url}/chat/markChatUnread/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": [
{
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
],
"chat": "<string>"
}'
{
"message": "Read messages",
"read": "success"
}
Your authorization key header
Name of the instance
Created
The response is of type object
.