Request with GraphQL with 403

Hello,

I ran my test first on GraphQL API Explorer and then on Insomnia.

Unfortunately when i run it on Insomnia with the endpoint https://your-repo-name.cdn.prismic.io/graphql as it explain in the documentation i got a 403 response. (In precision i have the bearer token in the auth configurations)

After hunting for an answer for my problem, i saw some topics where the people used https://your-repo-name.prismic.io/graphql (without the .cdn so) and it's worked.
The query is now in the url with the param query

And i needed to put my ref also
image

image

My question is simple, is it the right way to fetch data and the doc (Query Data with GraphQL - Prismic) is not updated?
Or did i miss something...

Hello @steven.renaux

Welcome to the Prismic community, and thanks for reaching out to us.

That's the documents for graphql fetch data, although it needs some updates because of the error. We will update it soon. Are you getting any other issues?

Thanks for pointing this out.

Priyanka