api interface for app