const API_KEY = 'your-api-key';
const response = await fetch('https://api.withchanneled.com/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
query: `
query {
me {
id
}
}
`
}),
});
console.log(await response.json());