Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Get token from Rest API with Flow



I am going out of my mind with this one... and could really use some help!

I need to connect to an API and get a bearer token to then proceed with following calls.

I got it all working on Postman and I also can make GET and POST calls with flow, provided I get the token in Postman first.


So, my flows which already have the bearer token on authorization work and I know I can connect to the API and get the data I need.


My problem is I can´t get flow to fetch my token.


Here's what I have:





"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json"



"grant_type": "password",
"username": "someUser",
"password": "somePassword",
"someAdditionalRequiredParameter": "someValue",
"someAdditionalRequiredParameter": "someValue",
"someAdditionalRequiredParameter": "someValue"


The result: {"error":"unsupported_grant_type"}


I have search the forums and other channels and I still haven´t found a solution for this. Has anyone encountered this before?


Best regards.

Frequent Visitor

Quick update. I got it to work. Changed the body to:




Best regards.

Hi Daniel, thank you very much ! I was struggling with this

Resolver I
Resolver I

Here is how I had to do it. Had to add the parameters in to the Queries portion and not in the Headers.

Screenshot 2020-11-25 140559 - Copy.png

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,111)