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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Power BI API: How to obtain token for https://wabi-west-us-redirect.analysis.windows.net/metadata/ga

Im trying to obtain token "https://wabi-west-us-redirect.analysis.windows.net/metadata/gallery/SharedDatasets" which I got from

Inspect through APIs. I tried getting token from "https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token" having permissions for Tenant.Read.All. Could anyone help me in the part which I am missing? 

Thanks!

 

 

c2craymond_0-1666243619686.png

c2craymond_2-1666244078469.png

3 REPLIES 3
Anonymous
Not applicable

Hi,

 

Have you found the solution how to get token for

metadata/gallery/SharedDatasets endpoints?
 
Thanks
Anonymous
Not applicable

I am able to obtain token for other APIs. But for "https://wabi-west-us-redirect.analysis.windows.net/metadata/gallery/SharedDatasets", it throws a 401 Unauthorised error.

Anonymous
Not applicable

HI @Anonymous,

Perhaps you can take a look at the following link to know how to get the access tokens from the rest API:

Solved: REST API Get Access Token - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.