Message Read Confirmation
By default, all incoming messages from clients are marked as read. This status is transmitted to the client, who believes that his message has been read and is waiting for a response, even if you have not read his message yet.
If your software supports automatic transmission of the message status, set up transmission of read confirmation upon opening.
To send a confirmation of reading when opening a message, send a request to the edna support service to disable automatic message reading.
Calling the api/in-message/change-status
method
Send a POST request to the URL https://app.edna.io/api/in-message/change-status
As a result of the request, JSON will be sent with the message ID and read status. The message will be marked as read. If the status is not recognized, an error message is returned.
Request format
The request body contains the message identifier that was received in the incoming message callback from the client, and the read status.
An example of the body of a request sending the client’s message read confirmation:
{
"id": 288101,
"status": "READ"
}
Request Parameters
Parameter | Data type | Description |
---|---|---|
id | string | ID of the incoming message. Learn more about receiving messages. |
status | string | Incoming message status. The value is read . |
Response format
If successful, the method transmits information to the system that the client's message has been read. The system marks the client's message as read. The response code after successful completion is 200
.