axios.post('https:sample-endpoint.com/user', { Name: 'Fred', Age: '23' }) .then(function (response) { console.log(response); })