var axios = require('axios');var data = JSON.stringify({"id":"3970a1b0-6e27-448a-adfc-0083db15b2fb","tokens":{"name":"Hi","email":"Hello@m.com"},"recipient":"james.sampleton@sample.com"});var config = { method: 'post', url: 'https://example.com/mas/api/v1/mail/transactional', headers: { 'm-token': 'sfg999666t673t7t82', 'Content-Type': 'application/json', 'accept': 'application/json' }, data : data};axios(config).then(function (response) { console.log(JSON.stringify(response.data));}).catch(function (error) { console.log(error);});