added an api for apprentice.io application