Orchestrator API - User key

Hi there,

Is there a way to make the user key static (found in the API access section of cloud.uipath.com)?
Every time I check my API Access settings I see the user key changed (which makes my API calls return code 400).

Could someone please help me with this?

Many thanks!

@Jeremy_Deceuster

Well it shouldn’t be the case, these API key’s generally do not change but … are you using enterprise trial or community edition ?

Community edition

@Jeremy_Deceuster

Is it done from here ?

No from Admin → Services. You can access API settings for each service from there.

@Jeremy_Deceuster

What purpose are you using User Key ?

To be able to make API calls (e.g. launch a job)

@Jeremy_Deceuster
You have to do it with a bearer token not with User Key.

I have a bearer token, you also need a user key.

Indeed , we need user key and client ID as well for this.

End point URL :- https://account.uipath.com/oauth/token
Header : - ‘Content-Type: application/json’

data as :

'{
    "grant_type": "refresh_token",
    "client_id": "{{clientId}}",
    "refresh_token": "{{userKey}}"
}'

This will give you bearer token, Next step is to get Release Key

End Point URL : - {{url}}/odata/Releases?$filter=ProcessKey eq 'ProcessName'

Yeah, I know, I need Client ID, User Key, Tenant Logical Name, and Account Logical Name for the next steps, but the issue is that the User Key is not a static value (it changes on short intervals) on this orchestrator instance for some reason. I have tested it on another orchestrator where the user key is doesn’t change and API calls work like a charm…

There must be a way to make sure the user key doesn’t change, but I am unable to find it.

@Jeremy_Deceuster

Please have a look : - Consuming Cloud API

@Jeremy_Deceuster

image

It worked well for me

It works for me aswell, on an orchestrator with a static user key.
Not when the user key is dynamic. That is the issue i’m facing.
Thank you for your help so far!

@Jeremy_Deceuster

It might be some other issue because user key is dynamic.
I have dynamic user key and it all works well.
Look at this documentation snip from UiPath Orchestrator.

Ref:- Consuming Cloud API

Jeremy_Deceuster

Please have look at the below video.

Orchestrator API - Authenticate

Hi Jeremy,

I am too facing an issue with dynamic generation of user key. Could you please let me know how did you get static user key to make API call? it will be really helpful.

Thanks in advance

Something must have been changed and now every time I click on API access (cloud icon) a new User Key is generated. It used to be static, as I was using Postman to run some requests, now can’t do it, as the User Key I copy from Orchestrator is no longer valid when I want to use it. Anyone knows how to authenticate in Postman now?

Hi, i’m also facing the same issue, have you resolve this? thanks in advance

It works for me, but I didn’t do anything, so can’t really help.