Swagger authorization

I want to use Swagger to try some api calls but I can’t figure out how to get authorized.

Clicking the Authorize button on the top right in Swagger shows two ways of doing this but it’s not clear what values to put in to the fields.

For bearer it should be (Litium Account?) value. Where can I obtain this value?

For oauth2 there should be a client_id and a client_secret. Where can I obtain these?
It also says Token “URL: /Litium/OAuth/Token” and “Flow: clientCredentials” but it’s a bit unclear for me what that means and how it should be used.

Also do these values need to be for a specific type of account?

Litium version: 7.4

You need a service account connected to a person that belongs to a group that has Swagger access.

Check out this page on Docs: https://docs.litium.com/documentation/architecture/web-api/how-to-use-the-web-api

1 Like

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