Mark Messages as Read

When you receive an incoming message from Webhooks, you can use this api to change the status of it to read. We recommend marking incoming messages as read within 30 days of receipt. A message marked as read looks like this:

Whatsapp Message as Read

To mark the message as read, send a PUT request to the /messages/{{ MESSAGE_ID }} endpoint with status set to read.

Parameters

This is the main parameter used in send text message requests:

NameDescription

status

Required
A message's status. You can use this field to mark a message as read.

read

.

Example

Sample request:

curl -X PUT 'https://waofficial.botika.online/api/whatsapp/v1/messages/{{ MESSAGE_ID }}' \
-H 'Authorization: Bearer {{ API_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{
    "status": "read"
}'

If successful, you receive a 200 status code.

null # or {}

If response fails, you receive a 404 Not Found response code.

Copyright © 2023 Botika Teknologi Indonesia