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
9418
Frequent Visitor

Power BI Rest API via Web query

Hi All

 

Microsoft Power BI embedded Rest API is working, I can get workspace info (Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Learn), but I try to use Power BI Web to creat connection to retrieve data into Power BI with Authorization Header , not working, the commnet is ---Details: "The 'Authorization' 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" Who can tell me what reason behind it?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @9418 ,

After test, the error you were seeing is from API you were trying to connect to. Your datasource may stop trying to login "Anonymous" and had got set to "Basic". 
Please follow the steps:
File>Options and settings>Data source settings
Then edit the permission to reset the type. The credential type should look like as below.

vjunyantmsft_0-1718677835067.png

I also found some posts with the same problem you are facing that might be helpful:
Solved: The 'Authorization' header is only supported when ... - Microsoft Fabric Community
Solved: How to pull data from Web API into PowerBI using A... - Microsoft Fabric Community
Solved: Remote API Access to data source sudden errors - Microsoft Fabric Community
Solved: Authorization Header unsupported but using Anonymo... - Microsoft Fabric Community


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @9418 ,

After test, the error you were seeing is from API you were trying to connect to. Your datasource may stop trying to login "Anonymous" and had got set to "Basic". 
Please follow the steps:
File>Options and settings>Data source settings
Then edit the permission to reset the type. The credential type should look like as below.

vjunyantmsft_0-1718677835067.png

I also found some posts with the same problem you are facing that might be helpful:
Solved: The 'Authorization' header is only supported when ... - Microsoft Fabric Community
Solved: How to pull data from Web API into PowerBI using A... - Microsoft Fabric Community
Solved: Remote API Access to data source sudden errors - Microsoft Fabric Community
Solved: Authorization Header unsupported but using Anonymo... - Microsoft Fabric Community


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

9418
Frequent Visitor

9418_0-1718586185645.png9418_1-1718586205400.png9418_2-1718586267758.png

9418_0-1718587207720.png

 Why they mentioned token comma expected, totally confused as I copies the temp token from Microsoft webpage

 

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.