Hi NIck,
I assume that the username and password for your API is same everytime, so you have to
enter the username and password in the HTTP authentication section(username and password boxes) in (''),
this way you'll get the accesstoken,
and for getting the accesstoken, I recommend you using the GET call.
Hope it helps!
**Edited**
Only the username and password should be there, no headers are required.
Hi All,
Thank you so much for all your help. After discussing with Rishabh I realized this login only took a JSON body with a username and password as a request, which helped me narrow down the problem further.
Then, after tracing through the responses using the REST Consume (thank you Jamie), I realized the problem lied in where I was inputting the username and password.
The value, unlike the JSON request, does not need quotations (“ “) around the credentials. After changing this, I was able to successfully authenticate and retrieve my token.
- Nick
The JSON Structure in the first picture is literally that: a structure that indicates how the JSON object will look like. The actual value will not be copied over, so you should remove the username and password from that. It should look like:
{
"username": "",
"password": ""
}
You should put the actual values for the username and password during the Create Object action, which you are now setting to “username” and “password”.