# Orchestrator Api guide

**URL:** <https://forum.uipath.com/t/orchestrator-api-guide/186942>\
**Category:** Help\
**Tags:** api, question, orchestrator, webapi, activities\
**Created:** [January 21, 2020, 11:27am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942 "2020-01-21T11:27:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 21, 2020, 11:27am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/1 "2020-01-21T11:27:12Z")

</div>

Can someone please suggest me all steps to work on orchestrator api.

As i have tried few but i think i am not following correct thing.

I basically want to fetch some information from orchestrator using api.

---

<div class="post-metadata">

**Author:** ![pattyricarte](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pattyricarte/32/81346_2.png) [@pattyricarte](https://forum.uipath.com/u/pattyricarte)\
**Post date:** [January 21, 2020, 11:30am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/2 "2020-01-21T11:30:29Z")

</div>

Hi @Hitesh1

Hope this article might be helpful to you.

[https://docs.uipath.com/orchestrator/reference#managing-logical-resources](https://docs.uipath.com/orchestrator/reference#managing-logical-resources)

cheers 😃

Happy learning 😃

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 21, 2020, 12:00pm UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/3 "2020-01-21T12:00:41Z")

</div>

Can you please tell me what should be my first step?

Authentication ?

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 21, 2020, 1:25pm UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/4 "2020-01-21T13:25:59Z")

</div>

Create a Post Request  
Headers  
Content-Type = application/json  
User-Agent = blank  
X-UIPATH-TenantName = your tenant name

you’ll get download data back which will include an access token and ID token

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 21, 2020, 5:11pm UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/5 "2020-01-21T17:11:01Z")

</div>

what about authentication step?

@Jersey_Practical_Sho- Can you pls describe your last statement-  
you’ll get [download](https://www.uipath.com/start-trial) data back which will include an access token and ID token

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 22, 2020, 8:47am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/6 "2020-01-22T08:47:09Z")

</div>

Create a Post Request to [https://account.uipath.com/oauth/token](https://account.uipath.com/oauth/token)

Create these headers, set Value for Tenant, as whatever your tenant name is

 ![image](https://global.discourse-cdn.com/uipath/original/3X/7/e/7eef48c373ff15506f473ef53b86776511d5e75c.png)

Put this in the Body

 ![image](https://global.discourse-cdn.com/uipath/original/3X/b/f/bf5cb2297c798fb053b39c2d902ea8478ffb5eb6.png)

This will give you Access Token which you then use in further requests

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [January 22, 2020, 9:13am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/7 "2020-01-22T09:13:38Z")

</div>

Kindly have a view on this

> [@Steps for authenticating and using Orchestrator cloud API](https://forum.uipath.com/t/steps-for-authenticating-and-using-orchestrator-cloud-api/149111):
>
> Hi All, As I see lot of topics being posted on the authentication of Orchestrator cloud API, I decided to provide the step by step process of authentication and using the API. Here are the steps: Here is the documentation: [About OData and References](https://docs.uipath.com/orchestrator/v2019/reference#consuming-cloud-api) Generating Code Challenge and Code Verifier : a) This is the URL you need to run in any browser [https://repl.it/languages/nodejs.](https://repl.it/languages/nodejs.) and it will open the page like this This is a nodeJS server which will retrieve us the specific code…

Cheers @Hitesh1

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 23, 2020, 6:34am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/8 "2020-01-23T06:34:58Z")

</div>

@Palaniyappan - Hi , I got access token in first step.

In tried to check authentication, but it is throwing response code as 0 every time, though i have passes right data.

In second step - **Generating Code Challenge and Code Verifier:**  
I am getting error msg “crypto not defined”

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 23, 2020, 7:28am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/9 "2020-01-23T07:28:16Z")

</div>

done with this, now what is the next step?

every time i am getting below error msg-  
message": “{"message":"You are not authenticated!","errorCode":0,"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"You are not authenticated!","details":"You should be authenticated (sign in) in order to perform this operation.","validationErrors":null},"unAuthorizedRequest":false,"\_\_abp":true}401”,

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 23, 2020, 8:22am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/10 "2020-01-23T08:22:19Z")

</div>

Thats an older way of doing it, If you have the access token you can use that to start jobs etc

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 23, 2020, 8:24am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/11 "2020-01-23T08:24:56Z")

</div>

Thankyou so much for this information.

Can you just tell me how to call a job now using token?

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 23, 2020, 8:48am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/12 "2020-01-23T08:48:49Z")

</div>

First you need to get the release key for the process you want to Run

Headers

 ![image](https://global.discourse-cdn.com/uipath/original/3X/c/8/c8236f7a3b27aaf2ac3a6396ae6f997f9a0e38f6.png)

Authorizations  
Change to Bearer and Enter Access Token

 ![image](https://global.discourse-cdn.com/uipath/original/3X/5/6/5657795e97be240b97cd622ed5680989c0b7bbe9.png)

Body  
Nothing

Send

You’ll get back a list of all the processes available, Copy the Key of the process you want to start

come back to me when you have the release key

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 23, 2020, 9:18am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/13 "2020-01-23T09:18:52Z")

</div>

can you pls share the url that you have used in your screen shot

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 23, 2020, 9:29am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/14 "2020-01-23T09:29:41Z")

</div>

[UiPath](https://platform.uipath.com/CHANGE) TO TENANT NAME/CHANGE TO TENANT NAME/odata/Releases

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 23, 2020, 11:52am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/15 "2020-01-23T11:52:06Z")

</div>

@Jersey_Practical_Sho - I am using below url

[https://platform.uipath.com/cognizantDefault/odata/Releases/](https://platform.uipath.com/cognizantDefault/odata/Releases/)

it is showing could not get any response msg

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 23, 2020, 1:06pm UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/16 "2020-01-23T13:06:00Z")

</div>

[https://platform.uipath.com/cognizantDefault/cognizantDefault/odata/Releases](https://platform.uipath.com/cognizantDefault/cognizantDefault/odata/Releases)

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 23, 2020, 2:55pm UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/17 "2020-01-23T14:55:36Z")

</div>

Thanks for your reply !!!  
In UiPath studio where we should mention bearer token.  
For example in properties window where should we set this.

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 23, 2020, 4:37pm UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/18 "2020-01-23T16:37:33Z")

</div>

You want to start a job from a workflow?

If so you don’t need any of the api stuff, as studio will connect through your robot to orchestrator, you just need to add a “Start Job”

The API is mainly for external systems to interact with ochestrator and thus the robots. Ie I have an Alteryx Workflow that produces data, at the end of its workflow it uses the api to start a UiPath Robot to process the data

---

<div class="post-metadata">

**Author:** ![Hitesh1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hitesh1/32/177149_2.png) [@Hitesh1](https://forum.uipath.com/u/Hitesh1)\
**Post date:** [January 24, 2020, 6:48am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/19 "2020-01-24T06:48:01Z")

</div>

@Jersey_Practical_Sho - Thanksyou so much for this information.

Now it is very much clear to me.

Just one more question , Can you tell me the name of any external source that uses orchestrator api and how we use access token for the same.

Thanks in Advance!!!

---

<div class="post-metadata">

**Author:** ![Jersey\_Practical\_Sho](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jersey_practical_sho/32/176941_2.png) [@Jersey\_Practical\_Sho](https://forum.uipath.com/u/Jersey_Practical_Sho)\
**Post date:** [January 24, 2020, 8:07am UTC](https://forum.uipath.com/t/orchestrator-api-guide/186942/20 "2020-01-24T08:07:18Z")

</div>

I mainly use Alteryx, but the steps would be exactly the same

Authenticate  
Get Releases (if you need to know the process key)  
Start Job

They will need all the information you used above Headers, Body, Authorisations and URL

[Next page](https://forum.uipath.com/t/orchestrator-api-guide/186942.md?page=2)
