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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ANA_3BRUM
Frequent Visitor

Semantic Model Scheduling API

I'm making a call to the REST API to get the scheduled refresh time, but it's giving me an invalid credential error, but I'm the Power BI administrator and it looks like I have the required permissions. Any suggestions?
Details in the REST API Give it a try and the query will run normally.

ANA_3BRUM_0-1726658609509.pngANA_3BRUM_1-1726658650541.png

 

1 ACCEPTED SOLUTION
3 REPLIES 3
ANA_3BRUM
Frequent Visitor

I don't have the skills to create the connector, but the token appears to be correct, as other queries work.
look:

The api i´m trying to connect to is https://learn.microsoft.com/pt-br/rest/api/power-bi/datasets/get-direct-query-refresh-schedule-in-gr...

lbendlin
Super User
Super User

evaluate the token with jwt.io - most likely the scope is missing.

 

Warning: Power BI REST API calls usually require a custom connector that understands AAD.

https://github.com/migueesc123/PowerBIRESTAPI

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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