Get one AI tool and the devices it is on
Return one AI tool (toolKey from getAiTools) and every device it is on: the device and its owner, the versions, whether it runs, where it is configured (sources), its MCP endpoints (scheme and host only) and its findings with their titles and paths (the home folder written ~). A 404 means no device reports the tool. AI tools are what Primo finds on macOS, Windows and Linux devices (assistant apps, coding agents, IDE plugins, browser extensions, MCP servers, AI connections, agent instruction files), as of the last sync (lastSyncedAt of getAiToolsOverview), with Primo’s severities, less the findings the company’s AI tools settings ignore. They are not the software catalog (getSoftwares, getDeviceSoftware), the company’s own AI agents (listAgents) nor AI credits (getAiUsage). A company without AI tools monitoring gets a 403, final.
curl --request GET \
--url https://api.getprimo.com/ai-tools/tools/{toolKey} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getprimo.com/ai-tools/tools/{toolKey}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getprimo.com/ai-tools/tools/{toolKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getprimo.com/ai-tools/tools/{toolKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getprimo.com/ai-tools/tools/{toolKey}"
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))
}HttpResponse<String> response = Unirest.get("https://api.getprimo.com/ai-tools/tools/{toolKey}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getprimo.com/ai-tools/tools/{toolKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tool": {
"toolKey": "<string>",
"kind": "assistant_app",
"name": "<string>",
"vendor": "<string>",
"deviceCount": 0,
"runningDeviceCount": 0,
"topVersion": "<string>",
"versions": [
{
"version": "<string>",
"deviceCount": 0
}
],
"worstSeverity": "critical",
"worstSeverityLabel": "<string>",
"findingCount": 0,
"policy": {
"status": "not_reviewed",
"source": "default",
"decidedAt": "<string>"
}
},
"devices": [
{
"deviceId": "<string>",
"deviceName": "<string>",
"serialNumber": "<string>",
"platform": "ANDROID",
"ownerId": "<string>",
"ownerName": "<string>",
"reportedAt": "<string>",
"versions": [
"<string>"
],
"running": true,
"sources": [
"<string>"
],
"endpoints": [
"<string>"
],
"worstSeverity": "critical",
"worstSeverityLabel": "<string>",
"findings": [
{
"rule": "<string>",
"severity": "critical",
"severityLabel": "<string>",
"title": "<string>",
"description": "<string>",
"findingKey": "<string>",
"reportedAt": "<string>",
"subjectType": "tool",
"subjectName": "<string>",
"toolKey": "<string>",
"toolKind": "assistant_app",
"evidence": {
"secretEnvKeys": [
"<string>"
],
"runtimeFlags": [
"<string>"
],
"permissionMode": "<string>",
"markers": [
"<string>"
],
"capabilities": [
"<string>"
],
"fromWebstore": true,
"signedState": "<string>"
},
"ticket": {
"id": "<string>",
"reference": "<string>",
"status": "PENDING"
},
"path": "<string>"
}
]
}
]
}curl --request GET \
--url https://api.getprimo.com/ai-tools/tools/{toolKey} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getprimo.com/ai-tools/tools/{toolKey}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getprimo.com/ai-tools/tools/{toolKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getprimo.com/ai-tools/tools/{toolKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getprimo.com/ai-tools/tools/{toolKey}"
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))
}HttpResponse<String> response = Unirest.get("https://api.getprimo.com/ai-tools/tools/{toolKey}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getprimo.com/ai-tools/tools/{toolKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tool": {
"toolKey": "<string>",
"kind": "assistant_app",
"name": "<string>",
"vendor": "<string>",
"deviceCount": 0,
"runningDeviceCount": 0,
"topVersion": "<string>",
"versions": [
{
"version": "<string>",
"deviceCount": 0
}
],
"worstSeverity": "critical",
"worstSeverityLabel": "<string>",
"findingCount": 0,
"policy": {
"status": "not_reviewed",
"source": "default",
"decidedAt": "<string>"
}
},
"devices": [
{
"deviceId": "<string>",
"deviceName": "<string>",
"serialNumber": "<string>",
"platform": "ANDROID",
"ownerId": "<string>",
"ownerName": "<string>",
"reportedAt": "<string>",
"versions": [
"<string>"
],
"running": true,
"sources": [
"<string>"
],
"endpoints": [
"<string>"
],
"worstSeverity": "critical",
"worstSeverityLabel": "<string>",
"findings": [
{
"rule": "<string>",
"severity": "critical",
"severityLabel": "<string>",
"title": "<string>",
"description": "<string>",
"findingKey": "<string>",
"reportedAt": "<string>",
"subjectType": "tool",
"subjectName": "<string>",
"toolKey": "<string>",
"toolKind": "assistant_app",
"evidence": {
"secretEnvKeys": [
"<string>"
],
"runtimeFlags": [
"<string>"
],
"permissionMode": "<string>",
"markers": [
"<string>"
],
"capabilities": [
"<string>"
],
"fromWebstore": true,
"signedState": "<string>"
},
"ticket": {
"id": "<string>",
"reference": "<string>",
"status": "PENDING"
},
"path": "<string>"
}
]
}
]
}