<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Querying Fabric's API for GraphQL in Postman in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-Fabric-s-API-for-GraphQL-in-Postman/m-p/4303683#M5381</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/770219"&gt;@clearyj3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I struggled 3 hours and finally made it. Here are my settings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a Microsoft Entra App in Azure Portal. Follow steps in &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/connect-apps-api-graphql#create-a-microsoft-entra-app" target="_blank" rel="noopener"&gt;this article&lt;/A&gt; and modify the following settings:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Authentication:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;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.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_2-1732692991498.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206618i30A23EA00C366FEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_2-1732692991498.png" alt="vjingzhanmsft_2-1732692991498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Allow public client flows: Yes&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_3-1732693049357.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206619iD0A31EA7E81CAE40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_3-1732693049357.png" alt="vjingzhanmsft_3-1732693049357.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;API Permissions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_7-1732694688028.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206635i73CE905300B54271/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_7-1732694688028.png" alt="vjingzhanmsft_7-1732694688028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. In Postman, create a request and set up its &lt;STRONG&gt;Authorization&lt;/STRONG&gt; like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_4-1732693539012.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206627iC9470382E0AF2850/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_4-1732693539012.png" alt="vjingzhanmsft_4-1732693539012.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Callback URL&lt;/STRONG&gt;: &lt;FONT color="#0000FF"&gt;the&amp;nbsp;Redirect URI of the Microsoft Entra App in previous step&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-unlink="true"&gt;&lt;STRONG&gt;Auth URL&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;A href="https://login.microsoftonline.com/{your" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/{your&lt;/A&gt;&amp;nbsp;tenant id}/oauth2/v2.0/authorize&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-unlink="true"&gt;&lt;STRONG&gt;Access Token URL&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;A href="https://login.microsoftonline.com/{your" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/{your&lt;/A&gt;&amp;nbsp;tenant id}/oauth2/v2.0/token&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Client ID&lt;/STRONG&gt;: &lt;FONT color="#0000FF"&gt;the client id of the Microsoft Entra App in previous step&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Scope&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com/.default" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/.default&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_5-1732693731497.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206629iF3C16A9085732F04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_5-1732693731497.png" alt="vjingzhanmsft_5-1732693731497.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Set up the body part and sent the POST request to GraphQL API:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_6-1732694563177.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206634i652D9ACFE0FB0D0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_6-1732694563177.png" alt="vjingzhanmsft_6-1732694563177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this would be helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/get-started-api-graphql" target="_blank" rel="noopener"&gt;Create and add data to an API for GraphQL - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/connect-apps-api-graphql" target="_blank" rel="noopener"&gt;Connect applications to Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/42520663/how-to-send-graphql-query-by-postman" target="_blank" rel="noopener"&gt;How to send graphql query by postman? - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2024 08:18:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-27T08:18:25Z</dc:date>
    <item>
      <title>Querying Fabric's API for GraphQL in Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-Fabric-s-API-for-GraphQL-in-Postman/m-p/4302481#M5369</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has experience with this or could provide guidance on the required permissions or any other potential issues, I would greatly appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 15:30:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-Fabric-s-API-for-GraphQL-in-Postman/m-p/4302481#M5369</guid>
      <dc:creator>clearyj3</dc:creator>
      <dc:date>2024-11-26T15:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Querying Fabric's API for GraphQL in Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-Fabric-s-API-for-GraphQL-in-Postman/m-p/4303683#M5381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/770219"&gt;@clearyj3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I struggled 3 hours and finally made it. Here are my settings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a Microsoft Entra App in Azure Portal. Follow steps in &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/connect-apps-api-graphql#create-a-microsoft-entra-app" target="_blank" rel="noopener"&gt;this article&lt;/A&gt; and modify the following settings:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Authentication:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;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.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_2-1732692991498.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206618i30A23EA00C366FEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_2-1732692991498.png" alt="vjingzhanmsft_2-1732692991498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Allow public client flows: Yes&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_3-1732693049357.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206619iD0A31EA7E81CAE40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_3-1732693049357.png" alt="vjingzhanmsft_3-1732693049357.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;API Permissions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_7-1732694688028.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206635i73CE905300B54271/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_7-1732694688028.png" alt="vjingzhanmsft_7-1732694688028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. In Postman, create a request and set up its &lt;STRONG&gt;Authorization&lt;/STRONG&gt; like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_4-1732693539012.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206627iC9470382E0AF2850/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_4-1732693539012.png" alt="vjingzhanmsft_4-1732693539012.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Callback URL&lt;/STRONG&gt;: &lt;FONT color="#0000FF"&gt;the&amp;nbsp;Redirect URI of the Microsoft Entra App in previous step&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-unlink="true"&gt;&lt;STRONG&gt;Auth URL&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;A href="https://login.microsoftonline.com/{your" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/{your&lt;/A&gt;&amp;nbsp;tenant id}/oauth2/v2.0/authorize&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-unlink="true"&gt;&lt;STRONG&gt;Access Token URL&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;A href="https://login.microsoftonline.com/{your" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/{your&lt;/A&gt;&amp;nbsp;tenant id}/oauth2/v2.0/token&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Client ID&lt;/STRONG&gt;: &lt;FONT color="#0000FF"&gt;the client id of the Microsoft Entra App in previous step&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Scope&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com/.default" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/.default&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_5-1732693731497.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206629iF3C16A9085732F04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_5-1732693731497.png" alt="vjingzhanmsft_5-1732693731497.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Set up the body part and sent the POST request to GraphQL API:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_6-1732694563177.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1206634i652D9ACFE0FB0D0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_6-1732694563177.png" alt="vjingzhanmsft_6-1732694563177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this would be helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/get-started-api-graphql" target="_blank" rel="noopener"&gt;Create and add data to an API for GraphQL - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/connect-apps-api-graphql" target="_blank" rel="noopener"&gt;Connect applications to Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/42520663/how-to-send-graphql-query-by-postman" target="_blank" rel="noopener"&gt;How to send graphql query by postman? - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 08:18:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-Fabric-s-API-for-GraphQL-in-Postman/m-p/4303683#M5381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-27T08:18:25Z</dc:date>
    </item>
  </channel>
</rss>

