Chat history
To retreive the topic based all chats in a conversation you can use the below API.
info
{api-base-url}
can be obtained from the MirrorFly console.
#
HTTP request#
Request ParamsParam | DataType | Required | Description |
---|---|---|---|
chatType | String | Yes | Chat type. Possible value singlechat |
topicId | String | Yes | TopicId to fetch records associated with topicId |
userOne | String | Yes | userOne userid of the chat |
userTwo | String | Yes | userTwo userid of the chat |
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 : If it is a media message, use the
fileUrl
from the media object to download the media by using this Download Media API. Topics can be created from here Create Topic.
#
ResponsesIf successful, this action returns chats list in a conversation, 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