curl --request GET \
--url https://app.trustivan.com/api/v1/findings/groups \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/findings/groups"
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/findings/groups', 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/findings/groups"
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))
}{
"groups": [
{
"kind": "<string>",
"identifier": "<string>",
"title": "<string>",
"severity": "<string>",
"count": 123,
"asset_count": 123,
"max_risk_score": 123,
"known_exploited": true,
"oldest_first_seen_at": "2023-11-07T05:31:56Z",
"latest_seen_at": "2023-11-07T05:31:56Z",
"status_counts": {}
}
],
"total_groups": 123,
"total_findings": 123,
"truncated": true
}{
"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"
}List findings grouped by issue
One row per issue (a kind and an identifier) across every asset
and status it appears in: “CVE-2021-44228, 14 findings on 6 assets”
rather than fourteen rows.
Same permission as /findings (findings:read) and the same filters,
validated the same way, applied before grouping. A group’s count is
therefore the total that /findings reports for the same query
string with that group’s kind and identifier added, which is how
a client opens a group.
Ordered worst first: highest severity, then highest max_risk_score
(groups with no scored finding last), then most findings, then
identifier.
Bounded, not paged. The order is by aggregates that move with every
scan, so there is no cursor; limit caps the list, and
total_groups, total_findings and truncated describe everything
the filters matched.
curl --request GET \
--url https://app.trustivan.com/api/v1/findings/groups \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/findings/groups"
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/findings/groups', 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/findings/groups"
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))
}{
"groups": [
{
"kind": "<string>",
"identifier": "<string>",
"title": "<string>",
"severity": "<string>",
"count": 123,
"asset_count": 123,
"max_risk_score": 123,
"known_exploited": true,
"oldest_first_seen_at": "2023-11-07T05:31:56Z",
"latest_seen_at": "2023-11-07T05:31:56Z",
"status_counts": {}
}
],
"total_groups": 123,
"total_findings": 123,
"truncated": true
}{
"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
Query Parameters
Narrow to findings whose identifier (a CVE, GHSA or rule ID) is
EXACTLY this, case-sensitively. q=CVE-2024-1 also matches
CVE-2024-10; identifier=CVE-2024-1 does not. Leading and trailing
spaces are ignored; over 200 characters is a 400. Part of the
cursor's filter set.
200Response
The groups, worst first.
GET /findings/groups.