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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sar
Regular Visitor

Unable to connect to Power bi using restapi

I am trying to send POST request to

https://login.windows.net/common/oauth2/token to get authorization code with parameters inside the body:

{
"grant_type":"password",
"client_id":"xxxxxxxxxxxxxxxxxx",
"resource":"https://analysis.windows.net/powerbi/api",
"username":"xxxxx.onmicrosoft.com",
"password":"xxxxxxx",
"client_secret":"xxxxxxxxxxxxxx"
}

I am getting error:

> { "error": "invalid_request", "error_description": "AADSTS90014: The
> request body must contain the following parameter: 'grant_type'. Trace
> ID: 6725893b-5f12-4f6b-9334-ea6c86f10400 Correlation ID:
> 27f51716-70fb-45f0-85d5-4ccfb32390c2 Timestamp: 2018-10-16 12:21:04Z",
> "error_codes": [ 90014 ], "timestamp": "2018-10-16 12:21:04Z",
> "trace_id": "6725893b-5f12-4f6b-9334-ea6c86f10400", "correlation_id":
> "27f51716-70fb-45f0-85d5-4ccfb32390c2" }

 

 

how can i solve this issue?

 

 

 

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.