Unable to get API Trigger to work

This is the first process at my company where we have wanted to try out way with an API Trigger.

We have created the Process, and the Trigger in Orchestrator.
We have also create an external APP that has a ID and Secret.

I cant find any great documentation that describes if i need a Token or can just use the client ID and Secret to trigger the process via API.

I have found something about a token, and have tried this.


And when i dont bother with the Token and just try and juse The Trigger API i get Unauthorized.
So i am a bit lost unfortunatly.

Hi, @lasr

To trigger a UiPath process via API, always use the access token obtained from the /connect/token endpoint with your client ID and secret, then include it as a Bearer token in all subsequent API requests for secure authentication

Thanks for the reply.
But i dont recieve a token at the moment.
I have as the picture shows. tried in Postman, but i cant get it to return a Token.

Can you spot what i am doing wrong?

@lasr

The key issue in your screenshot is that you are using a GET request instead of a POST request for obtaining the token—UiPath’s /connect/token endpoint requires POST. Additionally, ensure your POST body uses either “x-www-form-urlencoded” or “form-data” with the needed key-value pairs: client_id, client_secret, grant_type, and scope. Using GET will always return “invalid_client” and fail to deliver a token. Correct these settings and you will quickly receive a valid access token.

@lasr,

Tried this thread?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.