Scans
Create Scan
Trigger a scan
POST
/
v1
/
scans
curl --request POST \
--url https://api.projectdiscovery.io/v1/scans \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"targets": [
"<string>"
],
"templates": [
"<string>"
],
"assets": [
"<string>"
],
"private_templates": [
{
"name": "<string>",
"contents": "<string>"
}
],
"name": "<string>",
"recommended": true,
"all": true,
"alerting_config_ids": [
"<string>"
],
"scan_config_ids": [
"<string>"
],
"reporting_config_ids": [
"<string>"
],
"early_templates": [
"<string>"
],
"enumeration_ids": [
{
"id": "<string>",
"type": [
"<string>"
]
}
]
}'
{
"id": "<string>",
"message": "<string>"
}
Authorizations
Body
application/json
Response
200
application/json
Example response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.projectdiscovery.io/v1/scans \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"targets": [
"<string>"
],
"templates": [
"<string>"
],
"assets": [
"<string>"
],
"private_templates": [
{
"name": "<string>",
"contents": "<string>"
}
],
"name": "<string>",
"recommended": true,
"all": true,
"alerting_config_ids": [
"<string>"
],
"scan_config_ids": [
"<string>"
],
"reporting_config_ids": [
"<string>"
],
"early_templates": [
"<string>"
],
"enumeration_ids": [
{
"id": "<string>",
"type": [
"<string>"
]
}
]
}'
{
"id": "<string>",
"message": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.