List scans
curl --request GET \
--url https://app.trustivan.com/api/v1/scans \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans"
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', 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"
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))
}{
"scans": [
{}
],
"total": 123,
"page": {
"limit": 123,
"order": "recent",
"has_more": true,
"stable": true,
"next_cursor": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}List scans
Cursor-paginated, newest first. Ordering keys are immutable.
GET
/
scans
List scans
curl --request GET \
--url https://app.trustivan.com/api/v1/scans \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans"
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', 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"
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))
}{
"scans": [
{}
],
"total": 123,
"page": {
"limit": 123,
"order": "recent",
"has_more": true,
"stable": true,
"next_cursor": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}