add api config options and update new stash post logic