I need to consume API to get the list of all processes from orchestrator, but I am stuck with authentication issue. I am getting bearer token which I am using in getting processes.
But it is giving me message “You are not authorized”.
I am passing below parameters in header:
Content-Type - application/json
X-UIPATH-TenantName - {{tenantName}}
X-UIPATH-OrganizationUnitId - {{folderId}}
Please help!!
Nithin_P
(Nithin Prabhu)
March 3, 2020, 2:09pm
2
Hello @Amey_Shahane ,
Add the following parameter to header:
Authorization - Bearer
Regards,
Nithin
Hi Nitin,
Thank you for the response.
I tried the solution, but still getting same issue
Nithin_P
(Nithin Prabhu)
March 3, 2020, 2:24pm
4
Hello @Amey_Shahane ,
I missed the formating on my last post.
Authorization - Bearer Your Authentication Token
There is a space between Bearer and Your Auth Key.
Regards,
Nithin
HareeshMR
(Hareesh Madasi)
March 3, 2020, 2:32pm
5
@Amey_Shahane
Here you have steps for the entire process
Steps to do with the new API
Login to platform uipath
Click on the services tab and near the username, you will have three dots, click on that
Click on API access and copy all the details you have there like client id, key and user id whatever
Then send a post request to authenticate to the URL : https://account.uipath.com/oauth/token with the headers X-UIPATH-TenantName which you got in the above step and the body
{
“grant_type”: “refresh_token”,
“client_id”: “CLIENT ID you got …