const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({metadata: {}})
};
fetch('https://api.decart.ai/v1/client/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));