Skip to main content
GET
List test metrics

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

agent_id
integer

Filter metrics attached to the specified test agent.

assistant_id
string

Filter metrics attached to the specified Telnyx assistant.

Response

List of test metrics.

id
integer
required
name
string
required
type
string
required

How the metric is evaluated: custom_code or llm_judge.

eval_type
string
required

What the metric scores: numeric, continuous_qualitative, or binary_workflow_adherence.

slug
string | null

Stable identifier of a built-in metric.

project
integer | null
agent
integer | null
agents
integer[]

Test agent IDs the metric is attached to.

agent_names
string[]
description
string
function_name
string | null

Built-in evaluation function used by custom_code metrics.

enum_values
string[]

Allowed values for qualitative enum metrics.

audio_enabled
boolean
observability_enabled
boolean
simulation_enabled
boolean
sampling_enabled
boolean
sample_rate
number | null
prompt
string

Judge prompt used by llm_judge metrics.

display_order
integer
evaluation_trigger
string
trigger_type
string
evaluation_trigger_prompt
string
evaluation_trigger_custom_code
string
priority_assignment_prompt
string
configuration
object | null
overall_score
total_score
kb_file_ids
integer[]
knowledge_base_files
string[]
metric_cost
number
alert_type
string
significant_change_alert_status
string
significant_change_alert_direction
string
window_size
integer

Sliding window size the alert status is computed over.

std_multiplier
number

Standard-deviation multiplier for significant-change alerts.

ewma_alpha
number

Smoothing factor for the alert trend.

add_to_new_agents
boolean | null

Whether the metric is attached to newly created test agents by default.

alert_filters
object | null
uses_llm_judge
boolean
user_defined
boolean
Example: