friends

Search User

Search for a user by ID and check if already friends.

Args: user_id: ID of the user to search for allow_self_search: If true, allow looking up the authenticated user by their own ID current_user: Current authenticated user from dependency

Returns: Dict with user info and friendship status

get/api/friends/search/{user_id}

Request

Path parameters

user_idstring required

Query parameters

allow_self_searchboolean

When true, searching for your own user ID returns your profile instead of an error.

Headers

x-user-idstring nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 23 revisions of this API.