List
GET api/v1/userChannels/list
Note: To view a list of group chats.
Header
ApiKey
String
Authorization
String
Bearer ${unifiedAuthToken} , in which the unifiedAuthToken is returned by /api/v1/auth
Request Parameters
keyword
String
the name of the group chat. It suppports fuzzy search.
limit
int
number of records returned by each page
cursor
String
The cursor data returned by the last page. If cursor is null, then you are querying the first page.
Request Example
Response Parameters
code
String
the Return Code
desc
String
the Return Message
data
UserChannelResponse
the data
The UserChannelResponse field consists of the following subfields:
cursor
String
to query data on the next page.
list
Array[ChannelInfo]
the list of group chats
The ChannelInfo field consists of the following subfields:
status
String
the status of the group chat: 0-normal; 1-left; 2-removed by the admin; 3-the group chat had been dismissed.
channelUuid
String
the uuid of the group chat
displayName
String
the name of the group chat
channelIcon
String
the icon of the group chat
channelType
String
the type of the group chat
unreadMessageCount
String
counts of messages unread
mentionsCount
String
how many mentions
lastMessageType
String
the type of the last message: TEXT\SYS\CARD
lastMessageContent
String
the content of the last message
lastPostAt
Long
the timestamp of the last message
mute
boolean
Whether to mute it. True-yes, False-no.
pin
boolean
Whether it should be sticked on top. True-yes,False-no.
Response Body
Return Code
0
success
the flag for a successful request
13101
group type error
cannot recognize the group type
Last updated