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
revathi_p4
Frequent Visitor

how to access Powerbi service APIs from Powerbi Desktop

 

getting below error while accessing APIs from powerbi desktop. Please help me with the procedure to call the powerbi APIs from powerbi desktop. 

 

revathi_p4_0-1669704876898.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @revathi_p4 ,

 

Please check that the credentials have expired, clear the permissions, and try again.

You can try the following:

1.Open Power BI Desktop, when you already created visuals use the existing pbix.

2.go to File --> Options and settings --> Data source settings.
Check "Data sources in current file" and "Global permissions", mark any source and hit "Clear Permissions"; be aware that the source might not dissapear.

3.Close the Data source settings dialog.

4.Hit refresh.

 

You can also use a custom connector, which uses AAD authentication and doesn't require bearer tokens or refresh tokens. 

 

Please refer to the following document for more information.

GitHub - migueesc123/PowerBIRESTAPI: A Microsoft Power BI Data Connector or Power Query Connector fo...

Calling Power BI API using Power BI Desktop to document Power BI Service - Prathy's Blog...

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @revathi_p4 ,

 

Please check that the credentials have expired, clear the permissions, and try again.

You can try the following:

1.Open Power BI Desktop, when you already created visuals use the existing pbix.

2.go to File --> Options and settings --> Data source settings.
Check "Data sources in current file" and "Global permissions", mark any source and hit "Clear Permissions"; be aware that the source might not dissapear.

3.Close the Data source settings dialog.

4.Hit refresh.

 

You can also use a custom connector, which uses AAD authentication and doesn't require bearer tokens or refresh tokens. 

 

Please refer to the following document for more information.

GitHub - migueesc123/PowerBIRESTAPI: A Microsoft Power BI Data Connector or Power Query Connector fo...

Calling Power BI API using Power BI Desktop to document Power BI Service - Prathy's Blog...

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

archuleta28
Resolver I
Resolver I

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
Top Kudoed Authors