This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I suddenly have a 'The credentials are invalid' error for my various API calls to 2 different systems via an API key. Everything was working fine for weeks. If I try to edit the credentials, it gives me the "A web API key can only be specified when a web API key name is provided" error.
If I try to edit the settings, it now looks like a JSON call and I cannot edit the HTTP Header or insert the API key.
My CSV calls are working fine. I cannot rebuild the query, as it also gives me the 'A web API key can only be specified...".
I am using a gateway and it is on.
What could be the issue? Please help!
Solved! Go to Solution.
I managed to solve it! The datasources stopped trying to login "Anonymous" and were now on "Basic" mode.
After I tried your suggestion I actually got a different error:
The 'X-SmartToken' header is only supported when connecting anonymously. These headers can be used with all authentication types: Accept, Accept-Charset, Accept-Encoding, Accept-Language, Cache-Control, Content-Type, If-Modified-Since, Prefer, Range, Referer
Based on this error, I found the solution here: https://community.powerbi.com/t5/Desktop/Remote-API-Access-to-data-source-sudden-errors/td-p/627973
Thanks!
I managed to solve it! The datasources stopped trying to login "Anonymous" and were now on "Basic" mode.
After I tried your suggestion I actually got a different error:
The 'X-SmartToken' header is only supported when connecting anonymously. These headers can be used with all authentication types: Accept, Accept-Charset, Accept-Encoding, Accept-Language, Cache-Control, Content-Type, If-Modified-Since, Prefer, Range, Referer
Based on this error, I found the solution here: https://community.powerbi.com/t5/Desktop/Remote-API-Access-to-data-source-sudden-errors/td-p/627973
Thanks!
@lnel
Please refer to the solution in this post: https://community.powerbi.com/t5/Desktop/Get-data-from-web-error-A-web-API-key-can-only-be-specified...
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 14 | |
| 10 | |
| 9 | |
| 7 | |
| 7 |
| User | Count |
|---|---|
| 33 | |
| 28 | |
| 26 | |
| 19 | |
| 16 |