curl --request POST \
--url https://app.trustivan.com/api/v1/dast/targets/{id}/scans \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/dast/targets/{id}/scans"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/dast/targets/{id}/scans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/dast/targets/{id}/scans"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Scan a web application
Queues a scan. Whether it is active (crawl, then attack requests)
or passive (one page load) is decided when it runs, by checking
ownership again at that moment; target.mode is what it would be now.
The result is an ordinary scan: poll GET /scans/{id} (progress and
phase report how far a running one is), cancel it with
POST /scans/{id}/cancel, and read its findings from
GET /findings?kind=dynamic_analysis.
One dynamic scan per organization may be queued or running at a time
(409 with code: dast_scan_in_progress). A deployment’s engine runs
one scan at a time across organizations, so an accepted scan stays
queued while another organization’s runs, spending none of its
attempts. Counts against the plan’s
monthly scan allowance. Requires scans:create.
curl --request POST \
--url https://app.trustivan.com/api/v1/dast/targets/{id}/scans \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/dast/targets/{id}/scans"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/dast/targets/{id}/scans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/dast/targets/{id}/scans"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The scan and the asset it targets.
The response is of type object.