POST
/
chat
/
markChatUnread
/
{instance}
curl --request POST \
  --url https://api.l2msg.com/whatsapp/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"
}

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

Name of the instance

Body

application/json
lastMessage
object[]
required

Messages to be mark as unread

chat
string
required

remoteJid here

Response

201 - application/json
Created
message
string

A brief message describing the action performed.

read
string

The status of the read action.