Hi All, Currently i am trying to access the cloud api from postman. I am receiving the access token but when using the access token in subsequent api’s. i am receiving the following error,
{
"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": false,
"__abp": true
}
{
"client_id":"[Client Id value from Services => API Access]",
"refresh_token": "[User Key value from Services => API Access]",
"grant_type": "refresh_token"
}
Then I used this token + X-UIPATH-TenantName … and here was my mistake …
I put the [Service Name] as value instead of the Tenant Name that can be found in Services => API Access => Tenant Logical Name.
([Service Name] is the part you see in the URL UiPath)
With wrong Tenant Logical Name I was getting exactly same error message as @Rajesh_Manikandan.