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
- 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.
- Once done, you will receive client and secret
- Fill in those details under client id and secret.
- define the scope here
- 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
@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