Browse Platform API
Platform API

Before adding to the blacklist

Copy

Validate a blacklist addition.

HTTP request

POST {WEBHOOK_ADDRESS}/callbackBeforeAddBlackCommand

Request body

PropertyTypeDescription
callbackCommandstringcallbackBeforeAddBlackCommand.
ownerUserIDstringBlacklist owner
blackUserIDstringUser being blocked

Response

Return the common before-event response from Webhooks overview. Use nextCode: 1 to reject the operation.

Processing rules

  • Configuration key: beforeAddBlack.
  • OpenIM waits synchronously; timeout behavior follows failedContinue.