Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now

Reply
clearyj3
Frequent Visitor

Querying Fabric's API for GraphQL in Postman

Hi everyone,

 

I'm currently working with Fabric's API for GraphQL in Postman and have encountered an issue. I'm able to generate a bearer token using Entra ID, but every time I attempt to use it, I receive an "invalid token" error.

 

I've been trying to figure out if there are specific permissions or scopes required for this operation. Specifically, I'm wondering if the "tasks.ReadAll" permission is necessary, or if there's something else I'm missing.

 

If anyone has experience with this or could provide guidance on the required permissions or any other potential issues, I would greatly appreciate it!

 

Thanks in advance for your help!

1 ACCEPTED SOLUTION
v-jingzhan-msft
Community Support
Community Support

Hi @clearyj3 

 

I struggled 3 hours and finally made it. Here are my settings:

 

1. Create a Microsoft Entra App in Azure Portal. Follow steps in this article and modify the following settings:

Authentication:

  • Add a platform, select Mobile and desktop application. It generates some Redirect URIs automatically. I choose the first one. This will be used in Postman later. 

vjingzhanmsft_2-1732692991498.png

 

  • Allow public client flows: Yes

vjingzhanmsft_3-1732693049357.png

API Permissions:

vjingzhanmsft_7-1732694688028.png

 

2. In Postman, create a request and set up its Authorization like below:

vjingzhanmsft_4-1732693539012.png

vjingzhanmsft_5-1732693731497.png

 

Then click "Get New Access Token" to get the token. It pops up browser windows for you to log in your account. After authentication completes, it will display token value. You can copy it or click "Use the token" to use it in the request. 

 

3. Set up the body part and sent the POST request to GraphQL API:

vjingzhanmsft_6-1732694563177.png

 

I forgot to mention that my GraphQL API is created with SSO authentication option and I use my UPN to query the API. My account is the admin of the workspace where the GraphQL API is located. I haven't tested other scenarios. 

 

Hope this would be helpful. 

 

Reference:

Create and add data to an API for GraphQL - Microsoft Fabric | Microsoft Learn

Connect applications to Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn

How to send graphql query by postman? - Stack Overflow

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

1 REPLY 1
v-jingzhan-msft
Community Support
Community Support

Hi @clearyj3 

 

I struggled 3 hours and finally made it. Here are my settings:

 

1. Create a Microsoft Entra App in Azure Portal. Follow steps in this article and modify the following settings:

Authentication:

  • Add a platform, select Mobile and desktop application. It generates some Redirect URIs automatically. I choose the first one. This will be used in Postman later. 

vjingzhanmsft_2-1732692991498.png

 

  • Allow public client flows: Yes

vjingzhanmsft_3-1732693049357.png

API Permissions:

vjingzhanmsft_7-1732694688028.png

 

2. In Postman, create a request and set up its Authorization like below:

vjingzhanmsft_4-1732693539012.png

vjingzhanmsft_5-1732693731497.png

 

Then click "Get New Access Token" to get the token. It pops up browser windows for you to log in your account. After authentication completes, it will display token value. You can copy it or click "Use the token" to use it in the request. 

 

3. Set up the body part and sent the POST request to GraphQL API:

vjingzhanmsft_6-1732694563177.png

 

I forgot to mention that my GraphQL API is created with SSO authentication option and I use my UPN to query the API. My account is the admin of the workspace where the GraphQL API is located. I haven't tested other scenarios. 

 

Hope this would be helpful. 

 

Reference:

Create and add data to an API for GraphQL - Microsoft Fabric | Microsoft Learn

Connect applications to Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn

How to send graphql query by postman? - Stack Overflow

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

FebFBC_Carousel

Fabric Monthly Update - February 2025

Check out the February 2025 Fabric update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.