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
Aarush
Regular Visitor

Getting 403 when calling power bi rest api from postman client

Hi Power BI Experts - I have a requirement to call power bi rest api from dot net code, but before that I was trying to test it using powetman client, but getting 403 error when calling power bi rest service using auth token. I follow below steps to do that. Please suggest what step I'm missing over here?

 

1) Created Azure AD app and gave Power BI service deletgaed permissions to this app.

2) Retrieve access token using client id and secret as below.

 

Aarush_0-1655614227447.png

 

3) Then token recieved form step 2, used as authrozation header and passed to power bi rest api service in post man client as below.

Aarush_1-1655614451653.png

 

 

 

 

 

1 ACCEPTED SOLUTION
Aarush
Regular Visitor

I was able to resolve it.

The resolution is, I was using oauth 2.0 V1 end point for token generation which was giving 403 when being used with Power BI rest api, but when I tried oauth 2.0 V2 end point to generate tojen , it worked.

I would really be happy, if some kind of error message was thrown in response body to troubleshoot this, but this resolution may help for other users if they fall into similar issue.

 

Aarush_0-1655730814288.png

 

View solution in original post

1 REPLY 1
Aarush
Regular Visitor

I was able to resolve it.

The resolution is, I was using oauth 2.0 V1 end point for token generation which was giving 403 when being used with Power BI rest api, but when I tried oauth 2.0 V2 end point to generate tojen , it worked.

I would really be happy, if some kind of error message was thrown in response body to troubleshoot this, but this resolution may help for other users if they fall into similar issue.

 

Aarush_0-1655730814288.png

 

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.