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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
danielmillion
Frequent Visitor

Web API - Power BI keeps asking for credentials, yet does not seem to refresh

Hello, 

 

I have been using API data source for a few months now, but in the last week i am getting an error 

stating power bi cant authenticate the credentials given for the API source which is Anonymous.

My API code : 

 

let

url = "#######################################",
Content = "{
""DateTimeFromUTC"" : ""2019/01/01 00:00:00"",
""DateTimeToUTC"" : ""2019/03/31 23:59:59""
}
",

Source = Json.Document(Web.Contents(url,[Headers =[#"Content-Type"="application/json", #"AUTH_TOKEN" = "#################"],Content = Text.ToBinary(Content) , Timeout=#duration(0,2,0,0)
]
))

 

in
Source

 

Any Suggestions ? 

0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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