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 Params#
| Param | 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 | 
Responses#
If successful, this action returns recent chats list in the response body.
Error#
In 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