Orchestrator API Authentication

Hello community,

I am trying to play around with the Orchestrator API, but I can’t seem to get authenticated correctly. First off I can’t find a user guide for Orchestrator 2017 API, only 2016. Using the old documentation I was able to request receive a token, but I can’t seem to use it to authenticate. The only instructions are:

1.Make a POST request to the https://staging.uipath.com/api/account/authenticate URL with your Orchestrator login credentials
2.Copy to the Clipboard the token from the HTTP response, from the “result” parameter.
3.The token must be used in all future requests, in the following format:
Authorization: Bearer xxxxxxxxxxx
xxxxxxxxxxx - represents the token copied at step 2

I when I make another request I set a parameter Authorization with value “Bearer ” but I get this message:
{“result”:null,“targetUrl”:null,“success”:false,“error”:{“code”:0,“message”:“You are not authenticated!”,“details”:“You should be authenticated (sign in) in order to perform this operation.”,“validationErrors”:null},“unAuthorizedRequest”:true,“__abp”:true}

Please let me know how this is done correctly. Thanks!

@rmccloud, Refer this,

Regards,
Dominic :slight_smile:

1 Like

Thanks, I needed to add the token to headers not parameters. It works now!