Skip to main content

Group channel operation

The group_channel:operation event fires when a member-level or group-level operation occurs: a group is created or dissolved, members join or leave, members are added or removed as administrators, or channel ownership is transferred.

For the complete webhook setup and signature verification guide, see Webhooks overview.

Event type

group_channel:operation

Payload

Envelope

FieldTypeRequiredDescription
typeStringYes"group_channel:operation"
idStringYesUnique event ID.
timeLongYesEvent generation time (Unix ms).
dataArrayYesArray containing one group operation object. See Data fields.

Data fields

FieldTypeRequiredDescription
profilesArrayYesList of group operation records. Each element describes one operation on one group. See profiles[i] fields.

profiles[i] fields

FieldTypeRequiredDescription
channelIdStringYesThe group ID.
operationTypeNumberYesOperation type. See Operation types.
timeLongYesTime the operation was performed (Unix ms).
userIdStringNoThe user ID of the person who performed the operation (e.g., the group creator, the admin who kicked a member).
membersArrayNoUser IDs of the affected members (e.g., the users who joined, were kicked, or were promoted/demoted).

Operation types

ValueMeaning
1Group created — A new group was created.
2Member joined — One or more users joined or were added to the group.
3Member kicked — One or more users were removed from the group by an administrator.
4Member left — One or more users voluntarily left the group.
5Group dissolved — The group was disbanded.
6Administrator added — One or more members were promoted to administrator.
7Administrator removed — One or more administrators were demoted to regular member.
8Ownership transferred — Channel ownership was transferred to another channel member.

Example

JSON
{
"type": "group_channel:operation",
"id": "550e8400-e29b-41d4-a716-446655440010",
"time": 1730192400000,
"data": [
{
"profiles": [
{
"channelId": "group_001",
"operationType": 2,
"time": 1730192400000,
"userId": "user_001",
"members": ["user_002"]
}
]
}
]
}