web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP POST Body issue -...
Power Automate
Answered

HTTP POST Body issue - The request body must contain the following parameter: 'grant_type'.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am testing retrieving a bearer token to work with the Power BI api in Power Automate. I am trying to grab the bearer token with a HTTP request and am running into an issue with the body. I have the call working in Postman and I copied everything over to no avail. I keep getting an error about the body. 

 

Setup:

MAYLIWK_0-1629921053252.png

Error: The request body must contain the following parameter: 'grant_type'.

 

Any help would be appreciated.

 

Thanks

 

Categories:
  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @MAYLIWK,

     

    Another approach could be to use OAuth instead of a Bearer token. 

     

    Below is an example of that approach.

     

    A prerequisite for that approach is to change the Developer settings in the Admin portal of Power BI to allow service principals btw:

    https://powerbi.microsoft.com/en-us/blog/use-power-bi-api-with-service-principal-preview/

     

    oauth_powerbi.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply. I did not know we could do that.

     

    I did end up getting my call working. I had a space at the beginning of Conent-Type. Thats what I get for using copy and paste.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard