const options = {
method: 'POST',
headers: {
'x-nemonist-workspace-key': '<x-nemonist-workspace-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({text: '<string>', source: '<string>', thread: '<string>'})
};
fetch('https://nemonist.com/api/v1/inbox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));