Skip to main content
POST
Start a scan
tool_id specifies which scanner to run. Valid values:

Authorizations

Authorization
string
header
required

Use the "API key" from the profile page as the token

Body

application/json
tool_id
integer
required
tool_params
object
write-only
target_id
integer

only one of target_id and target_name should be used

target_name
string | null
write-only

only one of target_id and target_name should be used

workspace_id
integer | null
write-only

Workspace where the scan is started. It has to match the workspace ID of the target

vpn_profile_uuid
string | null
write-only

VPN profile to use for the scan. If null, there will be no VPN profile used. If not specified, the profile attached to the workspace will be used.

max_scan_time
integer
default:1440
write-only

Maximum number of minutes that the scan should run. Not supported by: Sniper, tools with short scan duration (like Website Recon or ICMP Ping).

Required range: 1 <= x <= 1440
report_callback
object
write-only

Send the report in a specific format to this URL when the scan finishes

scan_original_url
boolean
default:false
write-only

If true, the original URL is passed to the scanner, even if it redirects. If false, the redirected URL will be scanned instead.

redirect_level
enum<string>
default:same_domain
write-only

Possible values:

  • none - the target is passed directly to the scanner
  • check_accessibility - the target is checked for accessibility and an error is thrown on any redirect
  • same_host - only redirects within the same host are allowed
  • same_domain - redirects to subdomains are allowed
  • allow_all - any redirects are allowed
Available options:
none,
check_accessibility,
same_host,
same_domain,
allow_all

Response

Created

data
object
required