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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
IhebKharab
Frequent Visitor

We could not authenticate with the credentials provided

Hello everyone, 

I am trying to get data from an atlassian marketplace REST API with POST request: 
I have the following query: 

 

 

let
url = "https://marketplace.atlassian.com/rest/2/vendors/...",
body = "{...}",
token = "username:token",
header = [
#"Content-type" = "application/json",
#"Accept" = "application/json",
#"Authorization" = "Basic"& token],
response = Web.Contents(url, [Headers = header], [Content = Text.ToBinary(body)]),
AccessToken = Json.Document(response)[access_token],
JsonResponse = Web.Contents(url, [Headers =[ #"Content-type" = "application/json", #"Accept" = "application/json", #"Authorization" = "Basic"& token], Content = Text.ToBinary(body)]),
Result = Json.Document(JsonResponse)
in
Result

 

 

I have also set the source credentials to Annonymous because if not, I cannot use Web.Contents and if i remove Web.contents and use basic credentials I get the error that data of type record cannot be converted into number. 

 

Does anyone has a suggeston? 🙂 I have went through a lot of community answers about such topic, but unfortunately without sucess! 

Thank you already in advance and have a nice day. 

Kind regards, 

Iheb Kharab

2 REPLIES 2
Anonymous
Not applicable

Hi @IhebKharab 

You can try to get the url by select web resource

vxinruzhumsft_0-1696210524762.png

 

Then select authenticate by Anonymous

vxinruzhumsft_2-1696211058712.png

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.

 

 

 

Hi @Anonymous, 

 

Thank you for your reply, but I have chosen web as source and the authentication does not go through for annonymous. 

 

Kind regards, 

Iheb

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.

Users online (5,392)