Skip to content

List Conversation Participants



wss get_participants_by_cids

The get_participants_by_cids request returns a list of users upon request. The conversations field indicates which user is from which chat, which is useful if the user is part of several different chats.

NameTypeDescription
cidsarray[string]Array of Conversation IDs
NameTypeDescription
usersarray[object]Array of User objects
conversationsobjectObject of Conversation IDS with users belonging to them
{
"request": {
"get_participants_by_cids": {
"cids": [
"635a3b4cb15254ebe43e76ff",
"63563a2ad745dc1c6ad01b5f",
"63563a0cd745dc1c6ad01b5c"
]
},
"id": "RequestId"
}
}
{
"response": {
"id": "RequestId",
"users": [
{
"_id": "634ec51c0b65918393dca5bf",
"login": "carol18"
},
{
"_id": "63480e68f4794709f802a2fa",
"login": "breadpit"
},
...
],
"conversations": {
"635a3b4cb15254ebe43e76ff": [
"634ec51c0b65918393dca5bf",
"63480e68f4794709f802a2fa"
],
"63563a2ad745dc1c6ad01b5f": [
"63480e68f4794709f802a2fa",
"507f191e810c19729de860ea",
"507f191e810c19729de880ee"
],
...
}
}
}