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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
robchiap
Regular Visitor

How to connect to REST API using Windows Auth when header API key is required

I'm in the process of writing a power query script to call one of our internal APIs. This service uses Windows Authentication but requires an header named "api-key." Since this is not on the Power BI list of allowed headers for this kind of call, I cannot get things to work. Is there a way to get around this restriction?

1 ACCEPTED SOLUTION

Hi , @robchiap 

It is recommended to create a support ticket .They may have better advice.

Once you create a support ticket and get any workaround, please kindly share it here for reference.
https://powerbi.microsoft.com/en-us/support/ 

Thanks a lot!

 

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@robchiap , refer if this solution can help

https://community.powerbi.com/t5/Power-Query/Pull-data-from-a-REST-API-Authentication/td-p/246006

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for the response, but that solution uses Anonymous authentication. Though I get the same error message as that OP, I'm required to use Windows authentication, which only allows certain headers to be used. 

Hi , @robchiap 

It is recommended to create a support ticket .They may have better advice.

Once you create a support ticket and get any workaround, please kindly share it here for reference.
https://powerbi.microsoft.com/en-us/support/ 

Thanks a lot!

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.