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 common message fields described on Before sending a one-to-one message, except recvID; group callbacks use groupID instead to identify the destination. Group messages also expose this field:
| Property | Type | Description |
|---|---|---|
| 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?