API to send post request