Updating api to find account vs category