v3
OpenAPI 3.1.02026-07-31350397683.8 KBCreate Custom Metric
Create a new custom metric.
Headers
API key required to authenticate requests.
Request body
Stable code-addressable identifier
ID of the agent this metric belongs to (deprecated, use agent_ids instead)
List of agent IDs to associate this metric with
Name of the custom metric
LLM-judge system prompt (required for llm_judge; null for other types)
Short plain-English description of the metric (LLM-generated)
Specific metric kind (llm_judge, tool_call, audio_*, vocal_fry); legacy alias: type
Type-specific config (e.g. tool_call: {tool_names: [...]})
Which side of the conversation is evaluated
Which pipeline runs this metric
Enum representing the possible response types for custom metrics.
Minimum value for quantitative metrics
Maximum value for quantitative metrics
Category for organizing metrics
Tags for categorizing the metric
Guidance on how to score this metric
Enum representing the evaluation route of a call.
Model to use for text evaluation of the metric
Model to use for audio evaluation of the metric
Temperature for evaluating the metric
Options for enum metrics
Expected tool names for tool_call metrics
JSON Schema describing the object the judge must return (required for json metrics)
Whether this metric allows 'not applicable' responses.
Library template this metric was created from
Response
Successful Response
Unique identifier for the custom metric
Stable code-addressable identifier (same as id for custom metrics)
Name of the custom metric
LLM-judge system prompt for this metric (null for non-judge types)
Deprecated: same value as prompt
Short plain-English description of the metric (LLM-generated)
Specific metric kind
Evaluation category (llm_judge|statistical|ml_model|deterministic)
Type-specific config
Which side of the conversation is evaluated (agent|user|all)
Which pipeline runs this metric (observability|simulations|all)
Enum representing the possible response types for custom metrics.
List of agent IDs this metric belongs to
Minimum value for quantitative metrics
Maximum value for quantitative metrics
Category for organizing metrics
Tags for categorizing the metric
Guidance on how to score this metric
When this metric was created
When this metric was last updated
User who last updated this metric
User who created this metric
Enum representing the evaluation route of a call.
Model to use for text evaluation of the metric
Model to use for audio evaluation of the metric
Temperature for evaluating the metric
Options for enum metrics
Deprecated: mirror of settings.tool_names for tool_call metrics
JSON Schema describing the object the judge must return (json metrics only)
Whether this metric allows 'not applicable' responses.
Deprecated: always false (column removed).
Library template this metric was created from