use post request for api