Using the UiPath API, you can build automated and robotic process automation (RPA) solutions that improve business operations. UiPath's easy-to-use, powerful, and open tools allow developers to quickly and easily create automated tasks and processes that are essential to many companies.
Some examples of what you can build using the UiPath API include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uipath: {
type: "app",
app: "uipath",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cloud.uipath.com/${this.uipath.$auth.account_logical_name}/${this.uipath.$auth.tenant_name}/orchestrator_/odata/Users/UiPath.Server.Configuration.OData.GetCurrentUser`,
headers: {
Authorization: `Bearer ${this.uipath.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
UiPath uses OAuth authentication. When you connect your UiPath account, Pipedream will open a popup window where you can sign into UiPath and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any UiPath API.
Pipedream requests the following authorization scopes when you connect your account:
OR.Assets
OR.Execution
OR.Folders
OR.Machines
OR.Robots
OR.Users
OR.Jobs
OR.Queues
OR.Tasks
offline_access
GET
https://cloud.uipath.com/identity_/connect/authorize
?
client_id={{custom_fields.application_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://cloud.uipath.com/identity_/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.application_id}}
&
client_secret={{custom_fields.application_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://cloud.uipath.com/identity_/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.application_id}}
&
client_secret={{custom_fields.application_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}