I’d want to trigger a robot for running a process and I’ve read that the first step is the authentication.
So, I registered a new account under https://platform.uipath.com/. My endpoint, now, is UiPath
Using postman, I’m querying this endpoint UiPath in POST with the Content-Type: application/json in the header and in the body this json:
I’ve followed the guide you linked and I resolve the authentication problem.
I can also retrieve information about user logged into Orchestrator, as you can see in the picture, using the id_token generated from refresh_token API request.
So, I move forward to get some information using Orchestrator API and I try to get license information.
As you can see in the picture, using the client_token as authorization code (generated from refresh_token API request) I receive a negative response.
Easy enough After you go through the authentication, you should use the access_token as the Bearer token.
Just to make it all clear, all you need from now on is:
access_token to run the API call
refresh_token to refresh the access_token (otherwise it expires after 24 hours by default, but I think latest 2019.7 or 8 will add an API call to modify the expiration period )
Sorry, my mistake while writing the reply post.
In order to get license information, I use the access_token as you indicate in your reply and as indicated in the guide I’m following, but I get the error (showed in the second screenshot I attached earlier).