Skip to content

This repository is intended to provide some examples of how users can interact with the RiskSense REST API.

License

Notifications You must be signed in to change notification settings

risksense/risksense_api_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

risksense_api_examples

This repository is intended to provide some examples of how users can interact with the RiskSense REST API to retrieve information from, and perform operations on, the RiskSense platform.

Currently, all examples are provided using the Python (v3.7) programming language. To install required python modules after downloading the example scripts:

  • pip install -r requirements.txt

Generating an API token

Log in to RiskSense. If you are a multi-client, user, select one of your clients (it doesn't matter which one).

  • On the top right corner of the window, click the three vertical dots to open the menu.

    Menu Location

  • Select 'User Settings'

    User Settings

  • In the user settings page that opens up, locate the second section on the page labeled 'API TOKENS'. This is the section where you can create and revoke API tokens for your user.

    API TOKEN

  • Click the 'Generate' button to generate a new API token. You will be required to give it a name. This token will only be displayed once, so copy and paste it to a safe location for storage.

This token can now be used to interact with the RiskSense REST API. It will have the same permissions as the user that created it. This means that it can access the same clients, networks, groups, tags, etc.

About

This repository is intended to provide some examples of how users can interact with the RiskSense REST API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published