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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.