UiPath Orchestrator API : Authentication

@aksh1yadav, Ha bro just wantedly :wink:

Regard s,
Dominic :slight_smile:

Many thanks

Orchestrator Login mode is Windows.
I am use URL https://xxxx.xxxx.xxxx/api/account/authenticate to authenticate.

It does not works.

any idea would be helpful.

Hi

when you say it doesn’t work do you get an error? If so could you share this here. Also which version of Orchestrator are you using?

Cheers

David

I ma using version 2017. Error Code is 500 and says Login Model is null

Have you tried the project example Require guidance in Orchestrator API uploaded in this thread? Maybe give it a go and post your results.

David

Hi @aksh1yadav I am getting invalid credentials while trying http request,but im able to login using platform url. Could you please help me

Hey @Dinesh_S1

Just Cross check you are passing tenancy name as well in parameters and if you are passing already then make sure about spaces.

Regards…!!
Aksh

Hi @Dinesh_S1

Welcome to our UiPath Forum! :slight_smile:

Please see the Cloud API Authentication guide here:
https://orchestrator.uipath.com/v2019/reference#consuming-cloud-api

1 Like

Orchestrator API authentication for windows user. please share any workflow

Hi I’m uipath and API new user. I try to use authentication API but I get an error, I think it’s because of tenancyName, I don’t understand very well, which information should I put?

Hi @Richmond_Eki_EDOUKOU

Welcome to our UiPath Forum! :slight_smile:

Please go over this guide here:
https://docs.uipath.com/orchestrator/v2019/reference#consuming-cloud-api

Hi @loginerror thanks so much, I tried and it works fine.
Thank you

1 Like

@Dominic : this isn’t working for new versions. can you help?

@Shubhi

The link posted by @loginerror above has instructions that work. What is not working for you?

Post screenshot of error…

@mjdeale
I am using Orchestrator HTTP request activity, and i am unable to find the field to enter the Header Value mentioned by @loginerror in https://docs.uipath.com/orchestrator/reference#consuming-cloud-api

Hi @Shubhi

Normally the Orchestrator HTTP Request activity uses the context of your connected Robot. This is why you cannot modify the headers -> the API calls should already be authenticated with the context of your Robot (including the context of a folder the robot is in).

To execute stand-alone api calls, you can use the HTTP Request activity from the UiPath.Web.Activities package.

@loginerror

When i am using HTTP request where should the JSOn be passed? In body or in parameters?
I did the authentication by passing the value in parameters but while scheduling when i am passing value in parameters it is showing JSON invalid.

It should be passed in body as one long string.
Your authentication strings should be added as headers.

@Shubhi

Hey, Sorry for slow responses. I am travelling and have not been stable enough to try to test things out. LoginError seems to have it all under control though!

– M

1 Like