cURL
curl 'https://api.gumloop.com/api/v1/agents/AGENT_ID/evaluations/metrics?days=30' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'import requests
response = requests.get(
"https://api.gumloop.com/api/v1/agents/AGENT_ID/evaluations/metrics",
headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN"},
params={"days": 30}
)
metrics = response.json()
print(f"Pass rate: {metrics['grades'].get('pass', 0)}")
print(f"Tags: {metrics['tags']}")const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics', 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.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics",
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.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics"
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.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics")
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{
"grades": {
"pass": 118,
"needs_review": 19,
"needs_attention": 5
},
"tags": {
"PRICING_INQUIRY": 34,
"SUPPORT_TICKET": 52,
"ESCALATION_NEEDED": 8,
"POSITIVE_FEEDBACK": 45
}
}Get evaluation metrics
Returns aggregated grade and tag counts for an agent’s evaluations over a time window. Useful for dashboards and reporting on agent quality trends.
GET
/
agents
/
{agent_id}
/
evaluations
/
metrics
cURL
curl 'https://api.gumloop.com/api/v1/agents/AGENT_ID/evaluations/metrics?days=30' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'import requests
response = requests.get(
"https://api.gumloop.com/api/v1/agents/AGENT_ID/evaluations/metrics",
headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN"},
params={"days": 30}
)
metrics = response.json()
print(f"Pass rate: {metrics['grades'].get('pass', 0)}")
print(f"Tags: {metrics['tags']}")const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics', 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.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics",
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.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics"
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.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gumloop.com/api/v1/agents/{agent_id}/evaluations/metrics")
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{
"grades": {
"pass": 118,
"needs_review": 19,
"needs_attention": 5
},
"tags": {
"PRICING_INQUIRY": 34,
"SUPPORT_TICKET": 52,
"ESCALATION_NEEDED": 8,
"POSITIVE_FEEDBACK": 45
}
}Authorizations
Path Parameters
ID of the agent.
Query Parameters
Number of days to look back (1-365). Defaults to 30.
Required range:
1 <= x <= 365Was this page helpful?
⌘I
