ESET Online Help

Search
Select the category
Select the topic

Working with Swagger UI

To start using ESET Connect API, you need to get an access token and use it for authorization. To get the access token, follow the steps below:


note

Token validity is limited

Each access token is only valid for one hour. After that, you need to refresh it.

1.Navigate to the ESET Connect API Swagger UI page according to your region.

2.Click /oauth/token call.

3.Click Try it out to start editing the call.

Swagger_oauth_10

4.At grant_type, select password.

Swagger_oauth_11

5.Fill in the username and password fields.

6.Click Execute to send the call.

Swagger_oauth_12

7.After the call is executed, you will receive a response that contains an access token. You will need to use this access token to communicate with the server. Copy the access token to the clipboard.

Swagger_auth_3

8.Select the API call you want to use and open the corresponding ESET Connect API Swagger UI page. Click Authorize at the top of the page.

9.Type "Bearer" and paste the access token string to the Value field and click Authorize.

swagg_auth_4

10.The Swagger UI displays a confirmation of authorization. Click Close to close the window.

swagg_auth_5

After the authorization is saved, you can start executing other API calls. The authorization token is included in each call automatically by Swagger UI. To test your first API call, see Execute your first API call.