axios({ url: ‘https://api.monday.com/v2’, headers: {
Authorization: 'Bearer ’ + process.env.mondayToken
},
method: ‘get’,
data: {
query: `query { boards(ids: ID_HERE) { description } }`
}
}).then((result) => {
console.log(result.data.data.boardsa0])
})
.catch(function (error) {
console.log(error)
});
})
}
log returns { description: ‘post to monday.com](http://monday.com/)’ }
Page 1 / 1
Hey Kevin! Does this work for you? It looks like you’re using a GET request, when it should be a POST. All requests to our v2 endpoint should be POSTs, even if you’re receiving data (this is where the query
parameter comes in).
Do let me know if you have questions 💯
It did actually work, which was a leap forward for me, log did return description mentioned above. I did create a question around Mutation in another post I’ll mention you in. Thank u @dipro
Login to monday.com
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.