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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gauthamboppana
Solution Specialist
Solution Specialist

Power BI Rest API authentication token error



I am try get the authentcation token for the Power BI REST api.

 

gauthamboppana_0-1658506930737.png

 

Getting the below error.

gauthamboppana_1-1658507173722.png

 



Followed the solution from the below link, buy no luck.
  https://community.powerbi.com/t5/Power-Query/Connect-to-API-Bad-Request-Error/td-p/910259



Please can any one guide me. 

3 REPLIES 3
gauthamboppana
Solution Specialist
Solution Specialist

@lbendlin  - Yes, that's not the issue :). Tha just my mistake when grabbing the sample screenshot.

OK, so here's the bad news.  According to Chris Webb you cannot use OAUTH2 authentication with the Power BI REST API from within Power Query.  You can only use AAD auth (which is a simplified subset of OAUTH2).

lbendlin
Super User
Super User

You have a typo - "TennatID"

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.