curl --request POST \
--url https://app.trustivan.com/api/v1/scans/{id}/report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ai": true
}'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}/report"
payload = { "ai": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ai: true})
};
fetch('https://app.trustivan.com/api/v1/scans/{id}/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/scans/{id}/report"
payload := strings.NewReader("{\n \"ai\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"narrative": {
"source": "ai",
"model": "<string>",
"reason": "<string>"
},
"filename": "<string>",
"markdown": "<string>",
"html": "<string>"
}{
"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"
}Write a dynamic scan's security test report
A report of one succeeded dynamic scan, as Markdown and as print-ready HTML (save it as PDF with the browser’s Print command): executive summary, scope, method, findings by severity with links to each finding and its evidence, the OWASP Top 10 coverage table and remediation.
Every figure, table and finding comes from the scan’s records. With
ai true (the default), the organization’s AI assistant writes two
passages of prose, the executive summary and the remediation
priorities, from those records. It runs under the assistant’s own
rules (plan, admin switch, key, monthly credits, per-person rate
limit) and spends the organization’s AI credits. Prose that names a
figure that is not in the records is discarded. When the assistant is
off, unavailable, refuses or fails, the report is data-only and
narrative.reason says why: the request still succeeds.
Requires findings:read and the Exposure product.
curl --request POST \
--url https://app.trustivan.com/api/v1/scans/{id}/report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ai": true
}'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}/report"
payload = { "ai": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ai: true})
};
fetch('https://app.trustivan.com/api/v1/scans/{id}/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/scans/{id}/report"
payload := strings.NewReader("{\n \"ai\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"narrative": {
"source": "ai",
"model": "<string>",
"reason": "<string>"
},
"filename": "<string>",
"markdown": "<string>",
"html": "<string>"
}{
"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"
}