Browse Platform API
Platform API

Overview

Copy

The group module lets backend services create and manage group chats, including group profiles, members, join requests, ownership transfer, dismissal, and mute controls.

Capability scope

CapabilityDescription
Group managementCreate groups, update group profiles, dismiss groups, and transfer ownership.
Group queriesRetrieve group profiles in batches and list groups joined by a user.
Join workflowsApply to join, process applications, and query requests by group, user, or direction.
Member managementInvite, remove, or withdraw members; query member profiles and lists; and update member roles, nicknames, or extension data.
ModerationMute or unmute individual members and entire groups.
Application reminders and cleanup EnterpriseGet or clear application badge counts and delete sent or received group application records.

Common APIs

Resource representations

GroupInfo

GroupInfo represents an OpenIM group.

FieldTypeDescription
groupIDstringGroup ID. Supply it when creating a group or let the server generate it.
groupNamestringGroup name.
notificationstringGroup announcement.
introductionstringGroup introduction.
faceURLstringGroup avatar URL.
ownerUserIDstringGroup owner user ID.
creatorUserIDstringGroup creator user ID.
createTimeint64Creation time, normally a Unix timestamp in milliseconds.
memberCountintNumber of group members.
statusintGroup status. See GroupStatus.
groupTypeintGroup type. See GroupType.
needVerificationintJoin verification policy. See GroupVerification.
lookMemberInfointWhether members may view other member profiles.
applyMemberFriendintWhether users may add friends from the member list.
notificationUpdateTimeint64Last announcement update time.
notificationUserIDstringUser ID that last updated the announcement.
exstringGroup extension data.
displayIsRead EnterprisebooleanWhether group message read status is displayed. The server may disable it for large groups.
muteBypassUserIDs Enterprisestring[]Users allowed to send while the group is muted.

GroupMemberInfo

GroupMemberInfo represents a user's complete membership profile in a group.

FieldTypeDescription
groupIDstringGroup ID.
userIDstringMember user ID.
nicknamestringMember nickname.
faceURLstringMember avatar URL.
appMangerLevelintApplication management level. The field name matches the server response.
roleLevelintMember role. See GroupMemberRole.
joinTimeint64Time when the member joined.
joinSourceintHow the member joined. See JoinSource.
operatorUserIDstringUser that invited, imported, or approved the member.
muteEndTimeint64Time when the member mute expires.
inviterUserIDstringInviter user ID.
exstringGroup member extension data.

GroupRequestInfo

GroupRequestInfo represents a join request with nested user and group profiles.

FieldTypeDescription
userInfoobjectApplicant profile represented by PublicUserInfo.
groupInfoobjectGroup profile represented by GroupInfo.
handleResultintRequest result. See GroupRequestResult.
reqMsgstringApplication message.
handleMsgstringHandling message.
reqTimeint64Application time.
handleUserIDstringUser that handled the application.
handleTimeint64Time when the application was handled.
exstringApplication extension data.
joinSourceintJoin source. See JoinSource.
inviterUserIDstringInviter user ID.

Enums

GroupType

ValueNameDescription
0NormalGroupNormal group.
1SuperGroupSuper group.
2WorkingGroupWorking group.

GroupStatus

ValueNameDescription
0GroupOkActive.
1GroupBanChatGroup chat is banned.
2GroupStatusDismissedGroup is dismissed.
3GroupStatusMutedGroup is muted.
4GroupBanPrivateChatPrivate chat is prohibited.

GroupMemberRole

Ordinary member and administrator roles can be changed through member management APIs. Group ownership cannot be assigned through the normal member profile API.

ValueNameDescription
20GroupOrdinaryUsersOrdinary member.
60GroupAdminGroup administrator.
100GroupOwnerGroup owner.

GroupVerification

ValueNameDescription
0ApplyNeedVerificationInviteDirectlyApplications require approval; invitations join directly.
1AllNeedVerificationAll methods except owner or administrator invitations require approval.
2DirectlyJoin directly without approval.

JoinSource

ValueNameDescription
1JoinByAdminAdded directly by an administrator.
2JoinByInvitationJoined by invitation.
3JoinBySearchApplied after searching for the group.
4JoinByQRCodeJoined through a QR code.

GroupRequestResult

ValueNameDescription
-1GroupResponseRefuseRejected.
0PendingPending.
1GroupResponseAgreeAccepted.

Integration advice

Group operations often affect multiple users. Log the operationID, operator, target group, and member list in your backend.

Muting, removing members, transferring ownership, and dismissing groups are high-impact operations. Protect them with business authorization and audit workflows.