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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.