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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.