const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
topic: '<string>',
url: '<string>',
filters: {channelIds: ['<string>']},
headers: {}
})
};
fetch('https://api.vambe.me/api/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));