I spend few hours today to get this f*** API integration to work
Read a lot of interesting stuff on forum / official docs and The Definitive Guide to UiPath Cloud Orchestrator 2019.9 REST API Authentication. – Deale Tech
Finally for me it is much simpler
I use following method to get the Bearer token
https://account.uipath.com/oauth/token
{
"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.