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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Geek0874
Frequent Visitor

How to connect to a secure API

I want to access data from a secure api which request URL is :

[HOST]/[BASE_PATH]?apiKey=[API_KEY]

 

I've already generated an authentification token which works: 

Geek0874_0-1694164672263.png

 

In Power BI, I want to set a Web Data Source. For the moment I have done the following steps :

 

- assign my token value to the parameter "apikey"

Geek0874_0-1694165287521.png

 

 

- then I want to define a API web type authentification so I've entered my token value in the Key field and choose the lower level to apply those parameters (which corresponds to [HOST]/[BASE_PATH]?) but I have an error "a web API key can be specified when a web API key name is provided" 

Geek0874_0-1694165373976.png

 

 

 

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @Geek0874 

You can try to select the basic input in web source,

vxinruzhumsft_0-1694409693304.png

 

Then make the key as a value to input to the authentication.

vxinruzhumsft_1-1694409739891.png

You can refer to the following link.

Solved: A web API key can only be specified when a web API... - Microsoft Fabric Community

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.