Hi,
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:
URI:
http://someURLt:somePort/webapi/token
Header:
{
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json"
}
Body:
{
"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.