UiPath Orchestrator API : Authentication

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?

@Anmol_Yadav

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 Read me

Hi @Anmol_Yadav

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.

@Anmol_Yadav

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

@loginerror
Why am i getting error in this? Not abe to set schedule by API?
SetSchedules.xaml (6.1 KB)