The tenant's security posture in one request
curl --request GET \
--url https://app.trustivan.com/api/v1/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/stats"
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/stats', 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/stats"
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))
}{
"assets": 123,
"open_findings": 123,
"severity_counts": {},
"queued_scans": 123,
"running_scans": 123,
"status_counts": {
"open": 123,
"triaged": 123,
"reopened": 123
},
"sla": {
"configured": true,
"overdue": 123,
"due_soon": 123,
"due_soon_days": 123
},
"finding_breakdown": [
{
"kind": "<string>",
"asset_kind": "<string>",
"severity": "<string>",
"count": 2
}
],
"last_scan_at": "2023-11-07T05:31:56Z"
}The tenant's security posture in one request
A handful of aggregate counts a client can poll. “Open” means open, triaged or reopened throughout.
sla measures the open backlog against the organization’s own
remediation targets (/settings/sla). sla.overdue is the total of
/findings?sla=breached and sla.due_soon that of
/findings?sla=due_soon (its default 7-day window). When sla.configured is false no target has
been set and both are 0, which means “nothing to measure against”,
not “on time”.
GET
/
stats
The tenant's security posture in one request
curl --request GET \
--url https://app.trustivan.com/api/v1/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/stats"
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/stats', 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/stats"
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))
}{
"assets": 123,
"open_findings": 123,
"severity_counts": {},
"queued_scans": 123,
"running_scans": 123,
"status_counts": {
"open": 123,
"triaged": 123,
"reopened": 123
},
"sla": {
"configured": true,
"overdue": 123,
"due_soon": 123,
"due_soon_days": 123
},
"finding_breakdown": [
{
"kind": "<string>",
"asset_kind": "<string>",
"severity": "<string>",
"count": 2
}
],
"last_scan_at": "2023-11-07T05:31:56Z"
}Authorizations
Response
200 - application/json
Assets, open findings by severity, status and SLA, in-flight scans.
GET /stats.