reduce 'temp'api
reduce temp api fns, add posts api fns