basic api struct and add story api