How to request an Access Token for API in UiPath. It works in Postman, not in Studio!

Go UiPath Orchestrator–> Admin

Select the Tenant and click Services. In Orchestrator, click the 3-dot button and click API Access

Copy User Key, Tenant Name and Client ID.

Create a Post request to “https://account.uipath.com/oauth/token” and set the Authorization to No Auth.

In Header, set Content-Type to application/json and X-UiPath-TenantName to copied Tenant Name.

In the body, paste the following,

{
“grant_type”: “refresh_token”,
“client_id”: “copied Client ID”,
“refresh_token”: “copied User Key”
}

Now send the request, It worked for me.