Error While Accessing Orchestrator API

Hi Everyone.

I am trying to authenticate the orchestrator API using postman.
Url : {OrchestratorURL}/api/account/authenticate
Body
{
“TenancyName”: “{account_tenancy_name}”,
“UsernameOrEmailAddress”: “{account_username}”,
“Password”: “{account_password}”
}
But i am getting invalid credential error. But I am providing correct credential. Any idea why?

Hi @Kumar_Shashi_Ranjan

Check out the below thread. This might help you.

Regards

I tried to refer the article. But there are missing links in the article.

Thank you

Hi @Kumar_Shashi_Ranjan

Method: POST
Endpoint: https://account.uipath.com/oauth/token

In Header (KEY VALUE)
Content-Type : application/json
X-UiPath-TenantName : DefaultTenant
UsernameOrEmailAddress : YourOrchestratorEmailID

BODY
{
“grant_type”: “refresh_token”,
“client_id”: “YOUR_CLIENT_ID”,
“refresh_token”: “YOUR_REFRESH_TOKEN”
}

Hope it will helps you :slight_smile:
Cheers!!

Hi,
Thank you for the response. I am taking user key as refresh token and I am getting 400 bad request response and with invalid json.
Do i need to remove the double quotes from the body

@Kumar_Shashi_Ranjan

Body

Header

Its Working

Hi,

Please see my inputs
Body and API

Header,

Response,

I am using Client ID and refresh token(User Key). Please share your inputs

@Kumar_Shashi_Ranjan

Replace quotes with Proper Double Quotes in BODY

AND

Refresh Token IS User key
Tenant Name and Client ID

All you find here

Thanks
Nawazish

Hi,

Thank you for the help . It is working for me now. Just one more help please I want to run UiPath jobs using API. If u have the API’s handy could you please help me with it

@Kumar_Shashi_Ranjan

Glad to know its works :slight_smile:
Mark my answer as Solution.

You can open new Topic for your above query.

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