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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.