pass body data to API request