---
title: "Retrieve a metric"
method: GET
path: "/test_framework/v2/metrics/{id}/"
tags: ["Metrics"]
---

# Retrieve a metric

`GET /test_framework/v2/metrics/{id}/`

Fetch one metric by id.

## Path parameters

- `id` string, required

## Response `200`

- MetricDetailSerializerV2
  - `id` integer
  - `slug` string, nullable — URL-friendly unique identifier in snake_case format. Example: "customer_satisfaction_1562"
  - `project` integer, nullable
  - `agents` integer[]
  - `name` string — Name of the metric. Example: `"Customer Satisfaction"` or `"Appointment Booking"`
  - `description` string — Description of what the metric measures. Example: `"Measures how satisfied customers are with the service provided"`
  - `type` 'basic' | 'custom_prompt' | 'custom_code' | 'llm_judge' — Type of metric * `basic` - Basic (Deprecated in favor of LLM Judge) * `custom_prompt` - Custom Prompt ( Deprecated in favor of LLM Judge) * `custom_code` - Custom Code * `llm_judge` - LLM Judge
  - `eval_type` 'binary' | 'continuous_qualitative' | 'numeric' | 'enum' — * `binary` - Binary * `continuous_qualitative` - Continuous Qualitative * `numeric` - Numeric * `enum` - Enum
  - `enum_values` unknown
  - `audio_enabled` boolean — Whether this metric requires audio analysis. Example: `true` or `false`
  - `prompt` string — Evaluation prompt for the metric. Example: `"Evaluate customer satisfaction based on conversation"`
  - `evaluation_trigger` 'always' | 'automatic' | 'custom' — * `always` - Always * `automatic` - Automatic * `custom` - Custom
  - `trigger_type` 'llm_judge' | 'custom_code' — Type of trigger evaluation: LLM judge or custom code. Only used when evaluation_trigger is CUSTOM. Example: `"llm_judge"` or `"custom_code"` * `llm_judge` - LLM Judge * `custom_code` - Custom Code
  - `evaluation_trigger_prompt` string — Evaluation trigger prompt for the metric. Example: `"Evaluate metric only if call ended reason is main-agent-ended-call"`
  - `evaluation_trigger_custom_code` string — Python custom code to determine metric relevance. Code should set _result (bool) and _explanation (str). Example:

## Other responses

- `404`

---

[API](https://skmtc.net/cekura/apis/cekura-api.md) · [All operations](https://skmtc.net/cekura/apis/cekura-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cekura/cekura-api/revisions/d08e85615b58/schema)
