API for application