Endpoint
Authentication
This endpoint requires authentication. The user must be logged in to access this endpoint.Path parameters
Filter type for users list:
- Empty or not provided: Returns all users who are not already accepted friends
1: Returns only accepted friends2: Returns only users who have sent pending friend requests to the authenticated user
Query parameters
Search term to filter users by name or email. Performs a case-insensitive partial match.
Response
Returns a list of users matching the specified criteria.The filter type that was applied (matches the input parameter)
Filtering logic
All users (type empty)
Returns all users except:- The authenticated user
- Users who are already accepted friends (in either direction)
Accepted friends (type = 1)
Returns users where:- There is an accepted friend request where the user sent the request to the authenticated user, OR
- There is an accepted friend request where the authenticated user sent the request to the user
Pending requests (type = 2)
Returns users who:- Have sent a pending friend request to the authenticated user