The organization's AI agents, with their declared tools
curl --request GET \
--url https://app.trustivan.com/api/v1/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents"
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/agents', 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/agents"
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"
}The organization's AI agents and declared tools
The inventory. Workloads of kind agent only. A CI job and an
admission controller share the identity model and are deliberately not
agents: they declare no tools and open no sessions, and listing them
here would put a capability list on a principal that never declared
one.
Revoked and expired agents are included, for the reason the workload listing includes them: “what has this organization ever run” is the first question after an incident.
Behind workloads:read, which already governs what is acting in a
tenant. A separate permission for agents would let a tenant grant sight
of its CI jobs while hiding its agents, which is exactly backwards.
GET
/
agents
The organization's AI agents, with their declared tools
curl --request GET \
--url https://app.trustivan.com/api/v1/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents"
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/agents', 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/agents"
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 agents, each with its tools and live session count.