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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Power Query Web API with Session Key

Hello,

 

I am trying to connect Power BI to our ticketing system API to get ticketing data for a Power BI report.  I am using Power Query Advanced Editor to write the code to connect to the API POST.

 

Here is my code to connect to the API:

 

TSTUTZMAN_1-1700176108717.png

 

I have used the API Reference guide to build this code just like their examples and I keep getting either two errors. 

First error: 

TSTUTZMAN_2-1700176403348.png

When I set Cookie equal to sessionKey={created api key}

 

Second error:

I thought the API didn't like the text "sessionKey" in the header so I took it out and changed it to this:

TSTUTZMAN_4-1700176760165.png

and get this error

TSTUTZMAN_3-1700176605602.png

I have tried multiple modifications and cannot get it to work.  I am using Anonymous access currently.  I tried using Web API access and get this error when I enter in the API Key.

TSTUTZMAN_5-1700176984899.png

 

Any help would be appreciated.

Thanks,

Tim

 

 

 

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Please check the documentation for the proper format

 

Web.Contents - PowerQuery M | Microsoft Learn

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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