How to connect to powerBI Rest API?

Start with registering an OAuth client in your organization. See this topic: Power bi Refresh Locally Rest API - #7 by dgudkov

It's the most difficult part. Once you have Client ID and Client Secret, create the Web Location connector and query Power BI API according to its documentation.