v4

latestOpenAPI 3.1.02026-08-08221179273.1 KB
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}

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.

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