Recent Chat
To retreive all recent chat data of a user you can use the below API.
info
{api-base-url}
can be obtained from the MirrorFly console.
#
HTTP request#
Request ParamsParam | DataType | Required | Description |
---|---|---|---|
userId | String | Yes | userId to fetch recent chats of a user |
page | Number | No | Page number to get the particular page data default value is 1 |
size | Number | No | Number of chats per page default value is 10 |
#
ResponsesIf successful, this action returns recent chats list in the response body.
#
ErrorIn the case of an error, an error object like below is returned.
When the token passed in Headers is expired
In the case of a Bad Request, an error message is returned