making the api post