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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors