Classic APIs
ClassicFriendsApi
authenticatedUserRequestFriendship

authenticatedUserRequestFriendship

Sends a friend request to a specific user.

Parameters

NameTypeDescription
userIdIdentifierThe ID of the user to send a friend request to.
originSourceType?FriendshipOriginSourceTypeWhere the friend request originated from.

Example

const { data: requestStatus } = await ClassicFriendsApi.authenticatedUserRequestFriendship({
  userId: 2655994471,
  originSourceType: "UserProfile",
}); 

Example Data

{ success: true, isCaptchaRequired: false } 

Endpoint

REST /...