Recent chats
To retreive the users recent chat data 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 |
|---|---|---|---|
| messageTime | Long | No | If messageTime is provided, the API will fetch chats after the given epoch timestamp else fetches most recent chats in desc order |
| byTopic | Boolean | No | Flag to enable topic based search default value is false |
| topicId | String | No | TopicId to filter the record |
| exclude | Array of String | No | To exclude specific types of messages Eg: exclude = notification |
| 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 |
Note : Topics can be created from here Create Topic.
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