# How to access Graphql from postman or curl

**URL:** <https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823>\
**Category:** Developing with Prismic\
**Tags:** graphquery, graphql\
**Created:** [November 22, 2022, 11:08am UTC](https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823 "2022-11-22T11:08:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asreeram1729](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@asreeram1729](https://community.prismic.io/u/asreeram1729)\
**Post date:** [November 22, 2022, 11:08am UTC](https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823/1 "2022-11-22T11:08:13Z")

</div>

I am getting

```auto
{
    "message": "Missing Authentication Token"
}

```

When i try to access it from Postman or curl or from python requests.  
How to access graphql data with access token  
How do i use access token to get the graphql data?  
My queries are working from inbuilt graphql page

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [November 22, 2022, 5:12pm UTC](https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823/3 "2022-11-22T17:12:46Z")

</div>

Hi @asreeram1729 ,

Welcome to the Prismic community.

Unfortunately, it is a bit complicated for Postman to efficiently make calls to Prismic GraphQL since Prismic uses the GET HTTP method.

That means you would probably not be able to import your GraphQL schema to Postman to allow for auto-complete.

And to make a call from Postman, you would need the access token and prismic ref.  
You can get the access token from the URL when accessing to [your-repo-name.prismic.io/graphQL](http://your-repo-name.prismic.io/graphQL), such as:

 ![Screenshot 2022-11-22 at 18.02.54](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/4/4bc5647808e330ae4d807276eabc51ebbf76e540.png)

And to one way to get the Prismic ref is by opening the browser console and making a request; then, you will be able to find the ref in the request header, such as:

 ![Screenshot 2022-11-22 at 18.05.59](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/e/e9a84e843bafb48318ad002c2773476e16baa25a.png)

And then you can add that info in Postman as the following:

 ![Screenshot 2022-11-22 at 18.07.15](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/4/4b0362d2c7779caaa5fa8d22b54fd29cfee23db3.png)

Also, you would need to add your query in the params, such as:

 ![Screenshot 2022-11-22 at 18.07.28](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/c/c7a1c4db00273eac695b559909af30abfe9b2fec.png)

Finally, you can use a tool to encode your query before adding it as a query parameter to a URL-encoded format using a tool such as [this](https://www.urlencoder.org/), such

 ![Screenshot 2022-11-22 at 18.10.29](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/5/5cab1b9166980b8a7448d599888554dea4b7c756.jpeg)

Please let me know if you need any further clarifications.

Best,  
Fares

---

<div class="post-metadata">

**Author:** ![asreeram1729](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@asreeram1729](https://community.prismic.io/u/asreeram1729)\
**Post date:** [November 23, 2022, 5:35am UTC](https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823/4 "2022-11-23T05:35:51Z")

</div>

Thank you so much for clarifying this. This means a lot to me  
At our workplace we were using prismic for 3 yrs now. But the dev at start of migration to prismic used python library prismicio instead of using prismic-cli and other amazing tools you have using frameworks like React and express.  
But we have an issue with python library for prismic since it is restricting us to use only python 3.6.9 which is not okay with our senior devs.  
So i want to implement graphql with python instead of completely switching to other framework so i was trying to get data from postman to test it and implement from python requests

Thank you

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [November 23, 2022, 9:42am UTC](https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823/5 "2022-11-23T09:42:57Z")

</div>

Perfect, Thanks for letting us know.

---

<div class="post-metadata">

**Author:** ![asreeram1729](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@asreeram1729](https://community.prismic.io/u/asreeram1729)\
**Post date:** [November 23, 2022, 9:51am UTC](https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823/6 "2022-11-23T09:51:37Z")

</div>

Can you include this in your documentation?  
I think it may help others in future

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [November 25, 2022, 1:44pm UTC](https://community.prismic.io/t/how-to-access-graphql-from-postman-or-curl/11823/7 "2022-11-25T13:44:29Z")

</div>

I have forwarded this to our documentation team, but I'm not sure we will include this in our documentation where the forum sees a better fit for this.
