Get tools and the agents using them
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/graph/tools \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/graph/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/graph/tools"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"tools": [
{
"name": "<string>",
"type": "<string>",
"usage_count": 123,
"agents": [
"<string>"
]
}
],
"total": 123,
"cached": true,
"metadata": {
"orgSlug": "<string>",
"generated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "UNAUTHORIZED",
"message": "Authentication required"
}{
"error": "FORBIDDEN",
"message": "Access denied: missing permission 'ai-insights-v2:analytics:read'"
}{
"error": "TooManyRequests",
"message": "Too many requests for 'Insights'",
"details": {
"name": "Insights",
"ok": false,
"retryAfter": 42.5,
"limit": 100,
"window": 60,
"remaining": 0
}
}Graph
Get tools and the agents using them
Lists every tool used by the organization’s published agents (up to 500 agents), with the agents that use it, sorted by usage count.
Requires ai-insights-v2:analytics (read). Rate limit: 100
requests per minute.
GET
/
v1
/
graph
/
tools
Get tools and the agents using them
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/graph/tools \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/graph/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/graph/tools"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"tools": [
{
"name": "<string>",
"type": "<string>",
"usage_count": 123,
"agents": [
"<string>"
]
}
],
"total": 123,
"cached": true,
"metadata": {
"orgSlug": "<string>",
"generated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "UNAUTHORIZED",
"message": "Authentication required"
}{
"error": "FORBIDDEN",
"message": "Access denied: missing permission 'ai-insights-v2:analytics:read'"
}{
"error": "TooManyRequests",
"message": "Too many requests for 'Insights'",
"details": {
"name": "Insights",
"ok": false,
"retryAfter": 42.5,
"limit": 100,
"window": 60,
"remaining": 0
}
}Authorizations
BearerAuthOrgApiKeyAuth
Response
Tools with their agents.
Was this page helpful?