Platform API
Before importing friends
Validate or filter a batch of friend IDs before import.
HTTP request
POST {WEBHOOK_ADDRESS}/callbackBeforeImportFriendsCommandRequest body
| Property | Type | Description |
|---|---|---|
| callbackCommand | string | callbackBeforeImportFriendsCommand. |
| ownerUserID | string | Relationship owner |
| friendUserIDs | string[] | Friend IDs to import |
Response
Return the common before-event response from Webhooks overview. Use nextCode: 1 to reject the operation.
Processing rules
- Configuration key:
beforeImportFriends. - OpenIM waits synchronously; timeout behavior follows
failedContinue. - The response may return
friendUserIDsto replace the import set.
Was this page helpful?