How to Authenticate in UiPath Cloud Orchestrator in Postman/Swagger?

How to Authenticate in UiPath Cloud Orchestrator in Postman/Swagger?

  1. Click here to Login to the Cloud Platform account
  2. On the Services page, click the dots button next to a service and select the API Access option. The API Access window is displayed with the following service-specific information:
    • User Key - allows to generate unique login keys to be used with APIs or with 3rd party applications to log in and perform actions on your behalf. This was previously known as your refresh token.
    • Account Logical Name - unique site URL, (for example platform.uipath.com/yoursiteURL).
    • Tenant Logical Name - the selected service's logical name. It may differ from the tenant's name as it is displayed on the Services page. In this example, the tenant's name is Mir***Default, while the tenant's logical name is Mir***********26.
    • Client ID - specific to the Orchestrator application itself, is the same for all users and tenants on a specific platform. For example, all the tenants on platform.uipath.com have the same Client ID value.
  3. Do not close this page.
    The information can easily be copied by clicking the copy button next to each of these fields.
image.png
4. Request to be sent at: https://account.uipath.com/oauth/token
Header:
Content-Type:application/json
X-UIPATH-TenantName:tu*****am
image.png

Body:
{
"grant_type": "refresh_token",
"client_id": "8DE*****************n5",
"refresh_token": "pluJ**********************-kbApQt"
}
image.png

A response body will be given as :
image.png

Note: access_token is valid for 24 hours. The token needs to be regenerated once it is expired.

Once the access token is generated, the API call to Cloud Orchestrator can be made. Follow the documentation for making the API call:

With the newer version of Postman, SSL certificate verification is turned ON by default. Please turn it OFF before making an API call or else the API calls won't work.
1. Click on the Settings button
image.png
2. Turn OFF SSL certificate verification
image.png
1 Like