How to make orchestrator API calls?

Hi, I’m trying to get the user & queue details from UiPath studio via api. What is the end point fr those call?

Hi @Ana_Patricia

The following docs will help you with the requirement:

https://docs.uipath.com/orchestrator/standalone/2022.10/api-guide/building-api-requests

https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/queue-items-requests

Hope this helps,
Best Regards.

@arjunshenoy I am also looking same.

any videos? that are uploaded recently!

thanks,

Team,

You can also watch this playlist for more insights on this topic:

Hope this helps,
Best Regards.

Hi @Manju_Reddy_Kanughula ,

End Point: “/odata/QueueItems(”+in_TransactionItem.Id.ToString+“)”

JSONPayLoad = “{”“Name”“:”“{0}”“,”“Priority”“:”“{1}”“,”“DeferDate”“:”“{2}”“,”“SpecificContent”“:{3}}”
{0} - Queuename
{1} - Priority
{2} - JsonConvert.SerializeObject(specificContent)
{3} - Now.ToString(“o”)

Try this. Hope it helps.

Thanks. I tried to authenticate using this request - https://account.uipath.com/oauth/token
But I’m getting error
Invalid domain ‘account.uipath.com’ for client_id ‘XXXXXXXXXXXXX’.

But in documentation its told to pass the same end point - https://account.uipath.com/oauth/token. Where am I doing wrong?

@Ana_Patricia

May I know where you are trying it?

Did you create an external application?

Account.UiPath,com looks old or wrong

please check this for latest documentation on how to connect

https://docs.uipath.com/automation-cloud/automation-cloud/latest/admin-guide/setting-up-the-external-application

Cheers

1 Like

Accessing orchestrator through third party application so called Postman,

by watching older videos we are unable to connect it.

I am trying with UiPath Document as well [https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/queue-items-requests]

thanks.

1 Like

Trying to get audit logs. I have taken user key & client ID from Orch API access from settings.
I need to generate bearer token from http activity. Pls let me kknw the correct url

@Ana_Patricia

If you are using UiPath for this…then use Orchestrator Http Request activity…This does not required any authentication

You only need to find the relative url and the required body from swagger and use it as it is already connected to Orchestrator

https://docs.uipath.com/activities/docs/orchestrator-http-request

Hope this helps

cheers

No, the requirement is to use http request so that we can get data irrespective of robot’s connection with Orch.
So , need to use HTTP request

@Ana_Patricia

Okay…So is your orchestrator setup with Active directory integration?

If so you cannot use API Access and as of now oauth 2.0 is not supported by http request

And Why is connection to orchestrator not present? if not how are you planning to run the robot?

As Of now basic authentication is deprecated as well

If you have api access then use as below…I just tested it is working

Under admin → Tenant → Services

Get the User key , clientid and Tenant Name

and then

Post the request to "https://account.uipath.com/oauth/token"

Header - (Tenant name from API Access page

Body - (ClientID and user Secret to be replaced with values from API Access page again
image

Hope this helps

Cheers

Thank you it helped to authenticate.
How do I get the Audit logs for an organzation is there an end point to use.
I got this from documentations but its not working , like not sure if I’m passing the right ones.

End point : {BaseURL}/identity/api/AuditQuery/{organizationId}
Base URL : Https://Cloud.uipath.com/
Org ID : Org ID from Orch API access page.

Is this correct or is there any other endpoint?

@Ana_Patricia

This is not the correct end point…Please use swagger to find the end points and then your base url will be the orchestrator URL. Swagger wll contain required details

Swagger:

End Point for Audit logs:

Build Request: Please check this on how to build the sample request
https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/consuming-cloud-api

cheers

The endpoint should be https://cloud.uipath.com/[your organisation name]/[tenant name e.g. DefaultTenant]/orchestrator_/odata/AuditLogs

For the organisation name and tenant name, just look at the URL in your browser when you’re accessing Orchestrator in the cloud. You’ll see the same format of cloud.uipath.com/[org name]/[tenant name]/orchestrator_

Thank you, I have tried that already & its giving audit logs for Orchestrator level i.e., what we find under audit section in orchestrator.

But what is the end point to get the Audit logs present in Org level in Admin panel.

Well then the API endpoint would be https://cloud.uipath.com/[org name]/identity_/api/AuditQuery/[org id] but for me trying it out in Postman, I get “API is disabled”. Probably someone from UiPath needs to help out here.

image

@Ana_Patricia

By using this authentication these api’s cannot be accessed I believe …you have to go with creating an external application and use it

For that…you need oauth2.0 authetication…please look at below video…check if you can achieve this

cheers

cheers

Tried that but getting Invalid scope for all the Platform management API’s. Please share if you have any workflows which are working to get these audit logs

@Ana_Patricia

I never tried it …You can try giving read access on all and then hit the api

cheers