Browse Platform API
Platform API

Before importing friends

Copy

Validate or filter a batch of friend IDs before import.

HTTP request

POST {WEBHOOK_ADDRESS}/callbackBeforeImportFriendsCommand

Request body

PropertyTypeDescription
callbackCommandstringcallbackBeforeImportFriendsCommand.
ownerUserIDstringRelationship owner
friendUserIDsstring[]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 friendUserIDs to replace the import set.