Every decision recorded for a scan
curl --request GET \
--url https://app.trustivan.com/api/v1/scans/{id}/verdicts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}/verdicts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/scans/{id}/verdicts', 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/scans/{id}/verdicts"
req, _ := http.NewRequest("GET", 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"
}Every decision recorded for a scan
Several are normal and are the point: a scan evaluated under policy v1 and again under v2 has two decisions, and the v1 result remains exactly as it was. Historical verdicts are never recomputed.
GET
/
scans
/
{id}
/
verdicts
Every decision recorded for a scan
curl --request GET \
--url https://app.trustivan.com/api/v1/scans/{id}/verdicts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}/verdicts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/scans/{id}/verdicts', 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/scans/{id}/verdicts"
req, _ := http.NewRequest("GET", 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"
}Authorizations
Response
The verdicts, newest first.
The response is of type object.