const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({type: 'new', name: '<string>', value: '<string>'})
};
fetch('https://api.threetone.in/v1/convai/secrets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));