OAuth Apps

Hello, could someone help me?

I’m trying to connect to the Orchestrator API .

I created a new OAuth App with scope for the orchestrator and job queues, but I must be doing something wrong because I can’t get it to connect.

What I need is for a backend service to upload queue items to my orchestrator. From what I understand, this involves two steps:

  1. Generate an access token for the Orchestrator API.
  2. Implement a method to upload the queue items.

The issue is that I can’t get past the first step: generating the access token.

Hello @alexis.mendoza.rpa,

Please refer to the documentation guide: Automation Cloud - External Applications (OAuth)

Thanks,
Karthik

Yes I have already read the documentation, but I do not know what I am failing.

we would recommend to clear the requirements, for what exactly the ORC REST Api Access will be used.

For external uses, do the prototypings with tools like Bruno, Postman…
For internal (within UiPath Implementation) you can use:

Configuring the external Application will be done as described within the already shared link:

From the screenshots above we would recommend, once the overall-goal is cleared to focus on details like Application type (e.g defines the Grant Type), right scope settings…

From your screenshot above we can derive, that at least the URL looks not convincing. Also have a look here:

What I need is for an external application to upload queue items to the orchestrator.

The application works in two steps:

First, it requests access from UiPath to generate an access token.

Second, once it has the access token, it requests the data to be uploaded to the work queue.

I’m only using the HTTP request activity to test this API consumption

Hi @alexis.mendoza.rpa

Are you on on-prem orchestrator?

If no, endpoint url you are using to generate yoke is not correct. And also the parameters you are using are incorrect. You also need to use scope.

Please refer below post for what parameters to use and endpoint. This will help you generate access token which can then be used in next step to post queue items.

Please note that your scopes can not be all 3 scopes.. or.queues or.queues.read or.queues.write

It can only be or.queues and or.queues.read or

or.queues and or.queues.write

Using all three scopes will generate error.

Hope this helps.

You’re amazing, it worked, it gave me the token

I am glad I was able to help :slightly_smiling_face: