Import targets
How to import targets for Snyk API & Web scanning
Import targets
Import multiple targets to your Snyk API & Web account using JSON, CSV, or YAML files instead of adding targets individually through the interface.
Prerequisites
Prepare a file containing target information in one of the supported formats:
JSON
CSV
YAML
Required fields
Each target must include:
Name: Target name
URL: Target URL
Optional fields
Configure targets during import by including optional settings:
Seeds list (allowed paths)
Reject list (blocked URLs)
Custom headers
Custom cookies
Scan profile
Report type
Authentication settings
Labels
Availability of these settings varies depending on the target type. For complete field specifications, visit the Snyk API & Web API documentation.
Import targets
Log in to Snyk.
On the Targets list, click the vertical ellipsis next to Add.
Select Import from the menu.
Upload your file containing the target information.
Import targets with scheduled scans
Schedule future scans when importing targets by including a date and recurrence in your import file:
Hourly:
hDaily:
dWeekly:
wMonthly:
mQuarterly:
q
This approach sets up scheduled scans without using the interface.
JSON file with one target and monthly scheduled scans
CSV file with two targets and different scheduled scans
YAML file with one target and daily scheduled scans
Last updated
Was this helpful?

