Hi there:
I’m trying to make querys from a server using NodeJS and always get error 401 “you are not authorized to access this page”
const url = 'https://api.pipefy.com/graphql';
const options = {
method: 'POST',
headers: {
Authorization: '***MY_TOKEN***',
'Content-Type': 'application/json'
},
body: JSON.stringify({query: '{ me { name } }'})
}
The thing is, I'm using the example in the documentation but it doesn't work. What I am doing wrong?