Postman, Swagger showing You are not authenticated!

I am trying to use the api for cloud orchestrator, but through

  1. Postman I am able to the the access token and if I am using https://account.uipath.com/odata/Assets the response is “No Data” and if using https://cloud.uipath.com/odata/Assets the response is
    {
    “message”: “You are not authenticated!”,
    “errorCode”: 0,
    “result”: null,
    “targetUrl”: null,
    “success”: false,
    “error”: {
    “code”: 0,
    “message”: “You are not authenticated!”,
    “details”: "You should be authenticated (sign in) in order to perform this operation,
    “validationErrors”: null
    },
    “unAuthorizedRequest”: true,
    “__abp”: true
    }

2.The same above response I am getting while using the Swagger/Index.html

1 Like

Hey @Sanjit_Pal1

For the swagger authentication, just open a new tab and login to orchestrator post which swagger will work fine.

For the postman you will need to make one more API call to authenticate and get token to use it in subsequent requests like assets, folders etc

Hope this helps.

Thanks
#nK

Did the same thing

  1. In one tab opened the swagger and in another one Orchestrator is opened
  2. In post man I am getting the access token first and using that access token trying the other api call.
    image
  3. I have tried it for 2-3 community account getting the same for every account.
2 Likes

Hey @Sanjit_Pal1

I hope you are not doing it in incognito

Also, the orchestrator and the swagger you have opened belongs to the same orchestrator right ?

Thanks
#nK

  1. No, I am not doing it in incognito
  2. Yes both are belongs to same orchestrator
1 Like

Hey @Sanjit_Pal1

Then this should not happen.

Please post some screenshots and is that a cloud orchestrator?

Thanks
#nK

Hey @Nithinkrishna,

PFA the screenshot of Postman

Am unable to put the screenshots at once so posting it one by one.
Thanks, Sanjit Pal

Thanks,
Sanjit Pal

Thanks,
Sanjit Pal

Hey @Nithinkrishna,

image

Thanks,
Sanjit Pal

1 Like

Hey @Sanjit_Pal1

Do you have sufficient access ?

Thanks
#nK

Hey @Nithinkrishna,

I am having these much access.

This is the cloud orchestrator.

Thanks,
Sanjit Pal

1 Like

Hey @Sanjit_Pal1

I mean you also have folder access as well ?

Thanks
#nK

Hey @Nithinkrishna ,

Yes I have the folder access as well.

Thanks,
Sanjit Pal

1 Like

Hi @Sanjit_Pal1

Have you managed to resolve the issue?

Could you please list step by step how you tried using the api so far?

Hi @loginerror,

The issue is yet to be resolve.

Step that I followed to use the api:-

  1. I logged in to the cloud orchestrator.
  2. Copy the url of the orchestrator UiPath name/swagger/index.html

Postman:-
Am able to get the access token, but after that not able to use other api like add asset or other as well.

I know I have to use the access token that I got in the first step and I am mentioning it in the header of other api as the bearer token, but no luck.

Thanks,
Sanjit Pal

Could you try navigating to swagger with the browser console open, first on the Console and then on the Network tab, and see if there are any errors in either?

Hi @loginerror,

There is no any error in the network tab.

Thanks,
Sanjit

1 Like

Hey @Sanjit_Pal1

You are still facing the issue ?

Thanks
#nK

Hi @Nithinkrishna,

Still the issue is not resolved.

Thanks,
Sanjit

1 Like