Chat Conversation
To retreive all chat conversations between two users or a group you can use the below API.
info
{api-base-url}
can be obtained from the MirrorFly console.
#
HTTP request#
Request ParamsParam | DataType | Required | Description |
---|---|---|---|
userOne | String | Yes | userOne userid of the chat, Optional if group chat |
userTwo | String | Yes | userTwo userid of the chat, Optional if group chat |
groupId | String | Yes | groupId of the chat , Optional if single chat |
filterType | String | No | Accepts ALL_MSG or MSG_ONLY to include all messages or skip notification messages. Default is ALL_MSG |
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.
#
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