Archived List

To retreive the all archived chat list of current user.

info

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

HTTP request#

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

Responses#

If successful, this action returns archived chats in the response body.

{
"status": 200,
"data": [
{
"user": "91xxxxxxx26", // user or group ID of the archived chat
"chatType": "singlechat" // chat type of the archived chat
}
],
"message": "Data retrieved successfully"
}

Error#

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

When the token passed in Headers is not given or expired

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

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

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