Skip to main content
GET
/
agents
/
{agent_id}
/
evaluation-config
cURL
curl 'https://api.gumloop.com/api/v1/agents/AGENT_ID/evaluation-config' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
import requests

response = requests.get(
"https://api.gumloop.com/api/v1/agents/AGENT_ID/evaluation-config",
headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
)
config = response.json()["config"]
print(f"Enabled: {config['enabled']}, Criteria: {len(config['criteria'])}")
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.gumloop.com/api/v1/agents/{agent_id}/evaluation-config', 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}/evaluation-config",
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}/evaluation-config"

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}/evaluation-config")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.gumloop.com/api/v1/agents/{agent_id}/evaluation-config")

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
{
  "config": {
    "agent_id": "agent_456",
    "enabled": true,
    "is_active": true,
    "model_name": "anthropic/claude-sonnet-4",
    "frequency": "debounced",
    "language": "auto",
    "include_auto_tags": true,
    "interaction_types": [],
    "criteria": [
      {
        "id": "crit_1",
        "name": "Accuracy",
        "prompt": "The agent provided factually correct information.",
        "type": "other",
        "priority": "needs_attention"
      },
      {
        "id": "crit_2",
        "name": "Professional Tone",
        "prompt": "The agent maintained a professional tone throughout.",
        "type": "voice_tone",
        "priority": "needs_review"
      }
    ],
    "tags": [
      {
        "name": "PRICING_INQUIRY",
        "description": "User asked about pricing or billing."
      },
      {
        "name": "ESCALATION_NEEDED",
        "description": "Issue requires human intervention."
      }
    ],
    "data_points": [
      {
        "id": "dp_1",
        "name": "Customer Intent",
        "data_type": "string",
        "description": "Summarize the customer's primary intent in 2-5 words."
      },
      {
        "id": "dp_2",
        "name": "Confidence Score",
        "data_type": "number",
        "description": "Rate 1-10 how confident the agent appeared."
      }
    ],
    "sentiment": {
      "enabled": true,
      "affects_grade": true,
      "description": "Focus on the customer's final message tone."
    },
    "updated_ts": "2026-06-10T09:00:00+00:00"
  }
}

Authorizations

Authorization
string
header
required

A personal API key or an OAuth 2.0 access token. Personal API keys also require the x-auth-key header with your user ID.

Path Parameters

agent_id
string
required

ID of the agent.

Response

The agent's evaluation configuration.

config
object