🌙
 

Subscribe to the Taegis™ VDR Documentation RSS Feed at .

Learn more about RSS readers or RSS browser extensions.

Accessing the Public API through Postman

This article reviews how to use Postman in order to query Secureworks® Taegis™ VDR’s Public API and get a list of vulnerabilities matching a certain query criteria.

If you need to consume VDR’s public OpenAPI-compatible API with Postman, this article will guide you through the steps necessary to configure the Postman desktop application to access VDR’s data through OAUTH2 authentication mechanism.

Create a Public API Client in VDR

Follow the instructions found at Creating Public API Clients.

Tip

For Postman, use https://www.getpostman.com/oauth2/callback as a redirect URI. This path also needs to be included/updated also in the VDR Public API account Redirect URI property.

Configure Postman and Get a Request Token from the Previously Obtained Authorization Token

  1. Start Postman and select the Import button.

  2. Postman will ask for an API definition file. Direct it to your instance's API definition file, located at https://<INSTANCE>.vdr.secureworks.com/api/v2/spec/openapi-2.0.json

Postman Import

Postman Import

  1. Once the API instance has been added to Postman, it will be present in the left panel under the name that was given at import time. You can then right-click on the API instance and choose Edit from the dropdown menu to configure the API authentication mechanisms.

Edit API Instance in Postman

Edit API Instance in Postman

  1. From the Edit Collection window that appears, navigate to the Authorization section.

API Authorization in Postman

API Instance Authorization in Postman

  1. From the Type dropdown in the left side of the window, choose OAuth 2.0 to have the token value on the right.

Choosing OAuth 2.0

Choosing OAuth 2.0

  1. In the right pane, select the Get New Access Token button, and use the following parameters to fill in the missing info:

Get New Access Token

Get New Access Token

  1. Once you select the Request Token button, you will be redirected to VDR’s login page. Enter the applicative user’s login information and grant access to the API user.

  2. Once the authorization has been given, you will be redirected to a confirmation screen that shows the token characteristics.

  3. Select Use Token to be redirected to the Edit Collection menu where the token will now be visible on the right part of the screen.

Important

Make sure to select the right token in the Access Token field, otherwise your requests might be denied with a 400 error.

Edit Collection

Edit Collection

  1. After selecting Update, the collection that was previously created can now run the requests through the API.

  2. Navigate in the collection to the request of your choosing, and use the Send button to see Postman execute the API request and get the response.

Execute API Request

Execute API Request

 

On this page: