Orchestrator API's


While attempting to trigger UiPath Orchestrator jobs from a third-party application, I am currently testing the process via Postman. The goal is to authenticate with UiPath’s Cloud Orchestrator API, obtain an access token, and use it to call the Jobs API. However, authentication errors (e.g., invalid_client, 401 Unauthorized) are occurring during the token retrieval process, preventing further API calls. These issues need to be resolved to enable seamless job triggering through the API

Hi @Muhammad_Bin_Waseem

Please have a look at below screenshot and configure body of your request accordingly.

Please note: Process to authenticate via cloud orchestrator api is little different from on-prem orchestrator apis.

You will need to

  1. Set up an application via admin->external applications. Also, define scopes(user level if authenticating interactively, application level scopes for unattended setup) of your registration.
  2. Once done, you will receive client and secret
  3. Fill in those details under client id and secret.
  4. define the scope here
  5. Run, it should authenticate

Also, URL to fetch token will be below:
https://cloud.uipath.com/{{your organization name goes here}}/identity_/connect/token

Hope this helps.

1 Like


it is not working

@Muhammad_Bin_Waseem

Can you please show me the scopes you have selected in your external app?

Please note that if you select all 3 scopes for a particular resource, you are gonna get invalid scope error.

For eg

Or.administration and or.administration.read is fine

Or

Or.administration and or.administration.write is fine too

But if you give all 3 like below, you will get error.
Or.administration, or.administration.read and or.administration.write