How to get the access token in the postman web application?

Hi Everyone,

I’m trying to get the access token in the postman for the orchestrator but cannot get that after getting the status code 200.

Can anyone help me with this? How can I get the access token to use the orchestrator API.
what I’m getting in the postman


what I want

@Kumar_Sahu_Sameer

Please check this

Cheers

@Anil_G, Thanks for the quick response. I will try this method and keep you posted.

1 Like

@Kumar_Sahu_Sameer

the urls are different
token url is "https://account.uipath.com/oauth/token"
you are using "https://cloud.uipath.com/oauth/token"

Hi @Anil_G , tried the method which you suggested but got this error

Hi @muktadir, I have tried that URL but got this error

@Kumar_Sahu_Sameer

try with
grant type "refresh token"
client credentials set to whatever the value is in orchestrator

from where i can get this from orch could you please help me out ?

go to admin panel → select you tenant → click on api access → User key is your refresh token

body should be like
“grant_type”: “refresh_token”,
“client_id”: client_id,
“refresh_token”: refresh_token,

But there is no refresh token available

Got this error


How can I authorise it ?

@Kumar_Sahu_Sameer

Authorization did you select as no auth…

Also did you haooen to create an external app …and get detiails from there…is scope exactly matching?

Cheers

@Kumar_Sahu_Sameer

is the headers like these
“Authorization”: “Bearer”, “Content-Type”: application/json

Yes

@Anil_G
yes

@Kumar_Sahu_Sameer

May I know the scope is same and client id and secret are correct?

I just tried and could get a token

You get bad request when some extra value is there or some mnadatory is misisng…can you check the same

Cheers

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