add paths key, update api pipeline to extract it