Orchestrator Http Activity error


Failing to create access token using HTTP Activity.

Error Code: 400 - invalid request

Endpoint : https://cloud.uipath.com/identity_/connect/token

Method: POST

Body: {“grant_type”: “client_credentials”,“client_id”:“xxx”,“client_secret”:“xxx”,“scope”:“OR.Assets”}

Header: Content-Type = application/json

In postman with this client credentials and Content-Type as “application/x-www-form-urlencoded” i can generate access token but not from http activity in UiPath Studio.


If you are using in UiPath studio then directly you can use orchestrator http request instead of http request…then you need not do authentication as well as robot is already connected


Double check that the value client ID that you’re using is correct. Perhaps due to a copy / paste error the client ID doesn’t match any external applications in your Cloud organisation.

I tried it but it didn’t solve the issue.

Error: Invalid request. In Postman i can generate the access_token


No credentials are needed at all if you are using studio…


Is there a reason why you’re using application/json in Studio vs x-www-form-urlencoded in Postman? It should both use the same content type and the request body would be client_id={YourClientID}&client_secret={YourClientSecret}&grant_type=client_credentials&scope={YourScope}