Platform API
Before sending a group message
Use this callback for content moderation, policy enforcement, or field validation before a group message is sent.
HTTP request
POST {WEBHOOK_ADDRESS}/callbackBeforeSendGroupMsgCommandRequest body
The payload contains callbackCommand: callbackBeforeSendGroupMsgCommand, groupID, and the message fields described on Before sending a one-to-one message. Group messages also expose these fields:
| Property | Type | Description |
|---|---|---|
| recvID Enterprise | string | Recipient identifier supplied for the group message. |
| keyVersion Enterprise | int | Message encryption key version. |
Response
Return the common before-event response from Webhooks overview. Use nextCode: 1 to reject the message.
Processing rules
- Configuration key:
beforeSendGroupMsg. - OpenIM waits synchronously; timeout behavior follows
failedContinue.
Was this page helpful?