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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors