Issue with Client ID & Secret Authentication in UiPath Automation Suite API

Hi UiPath Community,

I’m trying to authenticate and obtain a Bearer Token for UiPath Automation Suite using Client ID and Client Secret via Postman, but I’m facing issues.

Request Details:

Issue:
When I send the request, I receive the following error message:

json
{
“error”: {
“code”: “UnsupportedApiVersion”,
“message”: “The HTTP resource that matches the request URI does not support HTTP method ‘POST’.”
}
}

I also tried using ‘/api/Account/Authenticate’, but it gives another error saying ‘UsernameOrEmailAddress’ and ‘Password’ are required, even though I want to authenticate using Client ID & Secret.

Questions:

  • Is there a different endpoint for Client ID & Secret authentication in UiPath Automation Suite?
  • Does my request format need adjustments?
  • Are there specific configurations required in Orchestrator to allow this authentication method?

Any guidance would be highly appreciated! :rocket:

Hey @sathvik.sk Verify that you’re using the correct API endpoint (/identity/connect/token) for Client Credentials flow.
Double-check that your Client ID and Client Secret are correctly registered and that they have the necessary permissions.
Ensure your Orchestrator version supports OAuth 2.0 Client Credentials flow and that the API is enabled for it.
If you are still facing issues, check the API documentation for the specific version of UiPath Automation Suite you’re using to ensure compatibility with the OAuth flow.
If you’re still encountering errors, providing the full response and ensuring that your client_id, client_secret, and Orchestrator URL are all correctly set would help in further troubleshooting.

cheers

@sathvik.sk

Please try the uri like this

https://asrpadev.ncbnpr.local/identity/connect/token

Cheers

Hi @sathvik.sk

Please try the endpoint suggested by @Anil_G

Also, I see scope is missing in body.

Regards
Sonali