Hi,
I am getting error when I am accessing the OrchestratorUiPath API.
Given below Headers:
Authorization With Bearer token
X-UIPATH-TenantName
X-UIPATH-OrganizationUnitId
Click on the services tab and near the username, you will have three dots, click on that
Click on API access and copy all the details you have there like client id, key and user id whatever
Then send a post request to authenticate to the URL : https://account.uipath.com/oauth/token with the headers X-UIPATH-TenantName which you got in the above step and the body
{
“grant_type”: “refresh_token”,
“client_id”: “ CLIENT ID you got from above step ”,
“refresh_token”: “fH5FcbEJLEm6BzuupvIBAb9V2eJkDDcQE1emAhSk-Cuoh”
}
You will get the access token, copy that
To get the folders, you need to send a GET request to the URL : https://platform.uipath.com/odata/Folders with the authorization code and X_UIPATH_TENANT_NAME as the headers.
[/quote]
If you are giving those along with the bearer token you got recently, it should work,
Can you let me know if the same bearer token working for someother request?
I think the issue will be the bearer token, may be it is expired, As far as I know, bearer token will expire in one hour after you got it from the request, Can you try creating new token and try it
FOr every Post request for /oauth/token API will give fresh access_token.
And copying the same in other Get APIs.
But still no luck getting same error.
Is there any setting to update the timeout period for access_token api