This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I am trying to connect to a Web API but am getting the error message
We couldn't authenticate wtih the credentials provided please try again and
Use anonymous access for this Web content
I have gone into my data source settings and selected anonmous as suggested in other posts.
let
url = "https://website.auth0.com/oauth/token",
body = "{ ""client_id"": "xxxxx",
""username"": """ & Username_Parameter & """,
""password"": """ & Password_Parameter & """,
some other details
}",
tokenResponse = Json.Document(Web.Contents(url, [RelativePath="/oauth/token", Content = Text.ToBinary(body) ])),
AccessToken = tokenResponse[access_token],
AccessTokenHeader = "Bearer " & AccessToken
in
AccessTokenHeader
Any help would be appreciated as I have tried several different options. My query isnot working at the tokenResponse = Json line
Solved! Go to Solution.
Hi @Anonymous ,
Depending on the error message you provided, this could be a permission/authentication error or an expired token. When you connect to a web data source from an unauthorized account, the appropriate credentials are created.
You can try deleting the previously created credential information and reconfiguring it at the screenshot location below, then connect to it and check if it succeeds.
Or refer to below blog:
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Depending on the error message you provided, this could be a permission/authentication error or an expired token. When you connect to a web data source from an unauthorized account, the appropriate credentials are created.
You can try deleting the previously created credential information and reconfiguring it at the screenshot location below, then connect to it and check if it succeeds.
Or refer to below blog:
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 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 |
|---|---|
| 36 | |
| 32 | |
| 27 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 25 | |
| 24 |