I'm just trying to access the GQL api without Apollo, and I seem to be missing something. I've got the correct url, correct token, and correct ref, but I'm getting an html 404 page. Is there anything else I need to get it working?
var request = require("request");
var options = { method: 'POST',
url: 'https://{{repo}}.prismic.io/graphql',
headers:
{ Authorization: 'Token {{token}}',
'Prismic-ref': '{{ref}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});