How to generate access token with client ID & Secret key provided by the business

Hello,

I’m trying to get access token from client provided client id and Secret key. Use of HTTP request is done for fetching the same. Getting 401 error upon passing parameters

Hello Rashmi

Statuscode 401 Unauthorized refers to missing permissions/access.

Are you perhaps missing some identification in the HTTP Request?
Or perhaps the API-provider has strict rules regarding source IP or such?

Regards,
Soren

@RPA24,

It depends on the API you are using. Like for UiPath Orchestrator API you will have to POST API request to this URL https://cloud.uipath.com/identity_/connect/token to get the token.

Thanks,
Ashok :slight_smile:

Client has provided their own url and client & Secret key which are to be used for generating token.
Since I’m new to API automation can u elaborate what needs to be done?

@RPA24,

As I said for the token retrieval there would be API specific endpoints. You should be asking for API documentation from your client. Every API have documentation on how to get started using it.

Cheers!

Thanks,
Ashok :slight_smile: