Platform API
Before adding a friend
Validate a friend request before it is created.
HTTP request
POST {WEBHOOK_ADDRESS}/callbackBeforeAddFriendCommandRequest body
| Property | Type | Description |
|---|---|---|
| callbackCommand | string | callbackBeforeAddFriendCommand. |
| fromUserID | string | Request sender |
| toUserID | string | Request recipient |
| reqMsg | string | Request message |
| ex | string | Extension data |
Response
Return the common before-event response from Webhooks overview. Use nextCode: 1 to reject the operation.
Processing rules
- Configuration key:
beforeAddFriend. - OpenIM waits synchronously; timeout behavior follows
failedContinue.
Was this page helpful?