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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Working API Load Model Wont authenticate in online

Hi All,

I have a working model that fetches data from an API using an API key embedded in the model.

The models works fine & pulls the data through. My issue is that the web part of my datasource wont authenticate online (under 'data source credentials'.

It seems to be that because it wont pass the key in the basic auth check online, it will not allow me to refresh (and if I ask it to ignore the auth check, it fails anyway)

I've tried the 'RelativePath' hack, but because my URL (https://api-reputation.com/v3/reviews) doesn't seem to have any valid non-encrypted parts, i can't get that to work either.

Please help me find another way around it!

Thanks all

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Ensure that the API you're trying to connect to supports the authentication method you're attempting to use. 

Set up your Web connection - Microsoft Fabric | Microsoft Learn

If your API requires a specific type of authentication (e.g., API Key), using Basic Auth might not be the appropriate method.

 

If your API requires an API key for authentication and does not support Basic Auth, you might need to pass the API key through custom headers. 

 

If it does not help, pleasee provide more details.

 

Best Regards
Community Support Team _ Rongtie

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

Ensure that the API you're trying to connect to supports the authentication method you're attempting to use. 

Set up your Web connection - Microsoft Fabric | Microsoft Learn

If your API requires a specific type of authentication (e.g., API Key), using Basic Auth might not be the appropriate method.

 

If your API requires an API key for authentication and does not support Basic Auth, you might need to pass the API key through custom headers. 

 

If it does not help, pleasee provide more details.

 

Best Regards
Community Support Team _ Rongtie

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

Anonymous
Not applicable

Hi Rongtie, thanks for tracking back. The model was working file & refreshing overnight every night. However, the previous admin is leaving, so I 'took over' the model online - which wiped all the credentials. I've been told it's simply 'basic' and 'none' for privacy, but it's no longer allowing me to refresh. The model itself has the custom headers built in, but I cannot pass customer headers through the online authentication can I?

Anonymous
Not applicable

Update - it was the privacy level... it needed to be set to 'Organisational'

Anonymous
Not applicable

Can anyone help?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors