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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.