Using API for teams