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