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.
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}