Start UiPath Process from Postman ON Premise | Orchestrator API

Hi,
I am able to get access token for below request,

https://{Orchstartor Url}/api/Account/Authenticate
Headers

Content-Type application/json
Body
{
“tenancyName”: “TenantName”,
“usernameOrEmailAddress”: “User”,
“password”: “Password”
}

and when i am trying to get release key of process using below request,

https://{Orchestartor Url}/odata/Releases?$filter=ProcessKey eq ‘ProcessName’

Headers

Content-Type → application/json
X-UiPath-TenantName → {{tenantName}}
X-UiPath-OrganizationUnitId -->{{folderId}}

and getting the below response

{
“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”: true,
“__abp”: true
}

Can you please any one help me o this

@madhubabu.balineni

Check below for your reference

https://docs.uipath.com/marketplace/automation-cloud/latest/user-guide/build-a-connector-examples-authenticate-on-premise-orchestrator

Hope this may help you

Thanks,
Srini

@madhubabu.balineni

Please try this…what you are using is deprecated i guess

https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/consuming-cloud-api

Cheers

Hi Anil,

I am using on premise and i think you provided cloud guide.

Thanks!!

@madhubabu.balineni

My Bad then your authorization is proper

your second request should contain bearer token…please check this

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

cheers

Hi @madhubabu.balineni

Kindly check the URL

Please Note that the identity_ is for Automation cloud and identity is for on premise.

Have you tried API swagger? in starting the process from API swagger

Cheers

Hi Anil,

I am using correct bearer token but still getting same issue.

@madhubabu.balineni

Did you happen to check the document and validate?

Cheers