Skip to main content
These examples use Python and the requests library to cover the most common workflows: managing targets, running scans, retrieving findings, and generating reports. Each section builds on the setup below, so start there before copying individual snippets.

Setup


Targets

List all targets

Create a target

Get target by ID

Delete a target


Scans

Start a scan

Get scan status

List scans

Get scan output

Stop a scan

Delete a scan


Workspaces

List workspaces

Create a workspace

Update a workspace

Delete a workspace


Findings

List findings

Get finding details


Reports

Create a report

Get report status

Download a report


HTTP Loggers

Create an HTTP logger

List HTTP loggers

Get logger data

Clear logger data


VPN Profiles

List VPN profiles


Complete workflows

Full scan workflow with polling

Batch scanning multiple targets

Wait for multiple scans

Generate report after scans

Always store your API key in an environment variable: