moved api.post to separate file