Where to get Orchestrator API Token?

Hello, I am trying to use the Add Queue Item API endpoint but I do not know where to find the API token I need to pass. Where In Orchestrator can I find the API token so I can use the orchestrator API endpoints?

Hi @BrianaB

Check below link for your reference

Hope this helps you

Thanks,
Srini

Hello, this video doesn’t show me how to get the Bearer Token. I have Enterprise edition.

@BrianaB,

Follow this documentation.

https://uipath.my.salesforce-sites.com/CaseView/articles/Knowledge/How-To-Make-Orchestrator-API-Requests-Using-HTTP-Request-Activities-or-Orchestrator-HTTP-Request?lang=en_US

1 Like

hello @ashokkarale, no im looking to call the UiPath orchestrator APIs from outside of UiPath, using postman, ect.

Hi @BrianaB

Are you looking to call cloud orchestrator api or on-premise one?

Hi @BrianaB

PFB configuration that you need to use for cloud orchestrator api call:

and below one for on-prem orchestrator api:

Hope this helps.

Regards
Sonali

@BrianaB

  1. Go to orchestrator → admin → external application → create one → add scopes
  2. Get the client id and client secret
  3. Use post request with url https://cloud.uipath.com/identity_/connect/token

Grant type is client_credentials

Cheers

1 Like

You need to register an external application within UiPath orchestrator as a prerequisite.

For registration , follow below steps

Go To Admin Tab and Click on External Applications

Click on Add Applications Button:Enter Application name and configure the required permissions. Permissions depends on what all API’s you are planning to call using the details of this application. Example - If the idea is to call api’s related to document understanding only - select all related to document understanding as scope for user and application

If user scope’s are selected - redirect url is mandatory. Use a place holder for now
https://localhost

Once the application is added - you will get App ID and APP Secret. Note it separate

Now make a token request from Post Man using the above details

POST https://cloud.uipath.com/identity_/connect/token

Headers:
Content-Type: application/x-www-form-urlencoded

Body:
grant_type=client_credentials
client_id={your_client_id}
client_secret={your_client_secret}
scope={scopes separated by space}

Example Scopes:
OR.Execution OR.Resources OR.Folders OR.Storage

Sample success response:
{
“access_token”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…”,
“expires_in”: 3600,
“token_type”: “Bearer”
}

@BrianaB

This is explained in this step by step guide:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.