setting up api for stories