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:
Prerequisite
All API calls require authentication with
API_TOKEN
Developers can authenticate their API calls with the API_TOKEN
generated in App Dashboard > Phone Numbers > Detail > Api
. To mark the message as read, send a
You cannot mark outgoing messages you sent as
Parameters
This is the main parameter used in send text message requests:
Name | Description |
---|---|
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.