Using APIs

Using APIs

The platform REST APIs help you seamlessly integrate the platform with other solutions. To use the APIs, generate an access token.

NotesNote: You must have Organization Admin privileges to generate an access token.

Step 1: As an Organization Admin, click on the avatar icon on the top right corner of the management UI.

Step 2: Click on the Settings.

Step 3: Scroll down to the API Access Tokens section of the page and click on APIs documentation to access documentation for all APIs.

Step 4: To generate an API token, enter a name and click on Generate.

The API documentation contains information on all of our available API endpoints.

  1. Click on an API to see more details about it.
  2. A description of the selected API will be displayed.
  3. Next, you'll see the parameters associated with the API. In this case, no parameters are required.
  4. You will also find the body of the selected API, where you can change the media type by selecting from the dropdown.
  5. Finally, the responses of the API operation is shown, and you can adjust the media type using the available dropdown.

Using the API’s

There are two options to use the APIs.

Option 1
Option 2
Option 1

You can also download the Swagger file and use it in Postman. To do this, simply navigate to the management API web page and select “Download Swagger JSON Definitions.” Once downloaded, you can easily import the Swagger file into Postman for use.

Option 2

You can use a curl command on the terminal. Please look at the example below to call the 'technologies' API (replace YOURAPITOKEN with your access token value):

curl -i -s -k -X $'GET' -H $'Host: api.secureflag.com' -H $'Authorization: Bearer YOURAPITOKEN' -H $'Content-type: application/json' $'https://api.secureflag.com/rest/management/technologies'