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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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