To use the Power BI REST API, a client application ID must be obtained by registering an application with Azure Active Directory. This registration can be completed via the four-step process at the following portal: https://dev.powerbi.com/apps:
- Sign in with the Azure Active Directory account:
-
- This is the account used for logging into the Power BI service
- Describe the application being registered:
-
- Provide an application name and Home Page URL
- Select Native app from the App Type dropdown
- Use the following Redirect URL: urn:ietf:wg:oauth:2.0:oob
- Choose the Power BI APIs to access:
-
- Select all available boxes (Dataset APIs, Report and Dashboard APIs, and Other APIs)
- Click Register App
Once the app is registered, the Client ID required for authentication will be exposed at the bottom, as shown in the following screenshot:

Alternatively, an application can be registered via the App registrations menu of Azure Active Directory. Registered applications can be managed in the Azure portal, as shown in the following screenshot of the Frontline Power BI Automation app:

In addition to the Application ID property, which is the Client ID to use for authentication, the Required permissions menu in Azure Active Directory provides access to all Power BI APIs including those currently in preview. For example, the permissions of the Frontline Power BI Automation app from the preceding image could be expanded to include the view all reports API currently in preview.