How to authenticate the swagger?

Hi Everyone,

How can I authenticate the swagger so that I can us the orchestrator API.


Hi @Kumar_Sahu_Sameer

I think below steps in the thread should help you.

Regards

@Kumar_Sahu_Sameer,

  1. Login to your orchestrator
  2. On another tab of the browser, Navigate to your Swagger url.
  3. Click on Authorize button.
  4. Check all scopes you require and click on Authorize button
  5. That’s it. You are ready to interact with API.

Thanks,
Ashok :slight_smile:

@vrdabberu , tried this but a few APIs are working and a few are still saying the same error.

HI @ashokkarale , I have tried the same method but a few are working and few not

Got this error when I tried to get the queue retention

@Kumar_Sahu_Sameer,

In that case it must be issue of Scope or your access level on Orchestrator.

Check if you have selected the scopes you are looking for and also if you have authorization on orchestrator for the same or not.

If you are not able to access something on Orchestrator from Ui due to access you have, the same will be restricted through API as well.

Thanks,
Ashok :slight_smile:

1 Like

@Kumar_Sahu_Sameer

The error states that you did not pass the organization unit id for the request pass it and you will get output

@Kumar_Sahu_Sameer,

You are not passing all require arguments to the API.

It’s not authentication issue.

Follow this tutorial for API request building. Orchestrator - Building API Requests

You can mark this thread as closed by marking the answer as solution.

Thanks,
Ashok :slight_smile:

1 Like

@Kumar_Sahu_Sameer

For few requests passing org unit id is mandatory…

And it is the fid that you see in the url when you open orchestrator

Cheers

1 Like

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