Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Need help from the local Gurus.
I have the following connection in PowerBI desktop version to get data from an API source. With an anonymous authentication.
= Json.Document(Web.Contents("https://mysource/statistics/tenant/monthly", [Headers=[#"X-API-Key"="Mykey21123123"]]))
However, when I published this to PowerBi web, I can no longer refresh the data. When configuring test connection, i receive the 400 error. "Failed to update data source credentials: The credentials provided for the Web source are invalid."
Is there a way to fix it? (I've been going through the forum for the whole day, and couldn't resolve this).
Hi @Destined ,
This is the related document, you can view this content:
Solved: Failed to update data source credentials: Web.Cont... - Microsoft Power BI Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 39 | |
| 29 | |
| 24 |