Api functionalities for the app