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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
meiwah
Resolver I
Resolver I

Power BI Rest API Postman "Try-it"

Hi, I used to obtain the Access Token from the "Try-it" feature at https://docs.microsoft.com/en-us/rest/api/power-bi/admin  

meiwah_0-1659433832335.png

 

But now it is unavailable, so I used Postman, with the below parameters and settings. I suspect there is some problem with the parameters used or settings as Scopes is not returned, although the Access Code is returned. 

meiwah_1-1659434171560.png

An access token is generated and I copy & paste into the below REST API, I've got an unauthorized error.

meiwah_2-1659434326135.png

 

Is there anything which I've missed out? Any parameters or settings wrongly configured? Thk u very much!

 

4 REPLIES 4
mariussve1
Super User
Super User

If you in Postman go to the authorization tab and there you can choose bearer token. Paste the token only (NOT bearer in front) it should work.

 

BR

Marius


Br
Marius
BI Fabrikken
www.bifabrikken.no

Hi Mariussve1, thks! I've pasted the Access Token under the Authorization tab in Postman but I still get the error "Unauthorized". Pls help

meiwah_0-1659576975644.png

 

meiwah_1-1659576975649.png

 

 

Are you using Service Principal (Tenant-, -App and Secret ID) ?
If yes, then you need to put this service principal in a security group in AAD (Azure AD). Then you have to permit this security group to the workspace you are running the REST API against.

If you want to use the admin API's you have to grant accesst to this in the tenant settings:

mariussve1_0-1659698355254.png

Br

Marius


Br
Marius
BI Fabrikken
www.bifabrikken.no

Thks Marisussve1! I've found another work around to acheive what I want to do. It is the custom connector Power BI API by Miguel Escobar

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.