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.

Authentication API call editing in Swagger started by clicking the Try it out button

4.At grant_type, select password.

Grant type set to password in the Authentication API call in Swagger

5.Fill in the username and password fields.

6.Click Execute to send the call.

API call execution in Swagger initiated by clicking the Execute button after all required fields are filled

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.

Access token value in the API call response in Swagger

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.

Access token used during Authorization in Swagger

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

Authorization window closed by clicking the Close button in Swagger

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.