Groups (Communities)
4/16/26Less than 1 minute
Groups (Communities)
Group Behavior Tracking Notification
When WhatsApp triggers the join/leave group action, it actively pushes notifications containing the logs of members joining or leaving.
WebHook
Configuration ID <GROUP_IN_OR_OUT_GROUP>
Request Parameter Description
| Field | Type | Required | Remarks |
|---|---|---|---|
| accessToken | String | Yes | Signed token string token |
| tenantId | int | Yes | Company ID |
| timestamp | Long | Yes | Millisecond timestamp |
| data | List | Yes | Format[{},{}], detailed as below (number of records 0-50 |
data Parameter Description
| Field | Type | Required | Remarks |
|---|---|---|---|
| id | String | Yes | Data id identifier (uuid) |
| friendWhatsId | String | Yes | WhatsApp phone number |
| actionType | int | Yes | 1 join group 2 leave group |
| createTime | String | Yes | Operation time, join time or leave time |
| groupWhatsId | String | Yes | Group ID |
| groupLink | String | No | Group link |
| dataType | int | Yes | Whether it is virtual data: data type 1 real 2 virtual |
- Request Example
{
"accessToken": "e6e18763d8d5a756d45c01486d7ad6742152ac",
"callBackUrl": "host/wscrm-bus-api/part/callback/groupAction",
"tenantId": 1238,
"timestamp": 1667295870936,
"data": [
{
"id": "30e873ab8f4840e2b610c414fe967327",
"friendWhatsId": "8617633819542",
"actionType": 1,
"create_time": "2023-02-01 00:00:00",
"groupWhatsId": "120xxxxx",
"dataType": 1,
"groupLink": "https://chat.xxx.com/CEwwCoiy7Qa1MVKex3x4p4"
}
]
}- Response Example
{
"code": 200,
"message": "Success",
"data": ""
}