new API structure for getting user