Read all

To update all unread messages as read you can use the below API.

info

{api-base-url} can be obtained from the MirrorFly console.

HTTP request#

curl -X POST "https://{api-base-url}/api/v1/chat/readall"
-H "accept: */*"
-H "Authorization: AuthToken"

Request Params#

No input params

Responses#

If successful, this action returns below response body.

{
"status": 200,
"message": "All your unread messages are marked to be updated as read"
}

In the case of a no unread messages exist for login user, below message is returned

{
"status": 200,
"message": "No unread message found"
}

Error#

In the case of an error, an error object like below is returned.

When the token passed in Headers is expired

{
"status": 401,
"message": "Token Expired"
}

In the case of a Bad Request, an error message is returned

{
"status": 400,
"message": "Error Message"
}