When you receive an incoming message from Webhooks, you can use the /messages
endpoint to mark the message as read by changing its status to read
. Messages marked as read display two blue check marks alongside their timestamp:
We recommend marking incoming messages as read within 30 days of receipt. You cannot mark outgoing messages you sent as read. Marking a message as read will also mark earlier messages in the conversation as read.
You will need:
whatsapp_business_messages
permissionTo mark the message as read, send a POST
request to the /PHONE_NUMBER_ID/messages
endpoint with messaging_product
set to whatsapp
, message_id
set to the message ID and status
to read
.
curl -X POST \
'https://graph.facebook.com/v21.0
/PHONE_NUMBER_ID/messages'
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"messaging_product": "whatsapp",
"status": "read",
"message_id": "MESSAGE_ID"
}'
On success, a JSON array is returned:
{ "success": true }