APIv3: Add endpoint to get the ids of filtered people