Skip to main content
GET
List metrics
You are reading the docs of Galtea 5.24. Read this page in the latest version.

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Query Parameters

ids
string[]

Filter by metric IDs

name
string

Filter by metric name (partial match, case insensitive)

names
string[]

Filter by metric names (exact match, case insensitive, multiple)

tags
string[]

Filter by tags; a metric matches when it holds one of them

sources
enum<string>[]

Filter by metric sources. CLASSIFIER is the deprecated name of DECISION, accepted until 2028-01-17.

Available options:
SELF_HOSTED,
FULL_PROMPT,
PARTIAL_PROMPT,
HUMAN_EVALUATION,
GEVAL,
DEEPEVAL,
DETERMINISTIC,
DECISION,
CLASSIFIER
includeExcludedFromAnalytics
boolean

Also list the metrics whose active revision is excluded from analytics. Defaults to false. A metric named in ids is listed either way.

description
string

Filter by metric description (partial match, case insensitive)

fromCreatedAt
string<date-time>

Filter metrics created at or after this timestamp (ISO 8601 format)

toCreatedAt
string<date-time>

Filter metrics created at or before this timestamp (ISO 8601 format)

includeOwnEntities
boolean

List the metrics of the caller's organization. When this or includeDefaultEntities is true, the list holds only the kinds set to true; when neither is, it holds both.

includeDefaultEntities
boolean

List the Galtea metrics. When this or includeOwnEntities is true, the list holds only the kinds set to true; when neither is, it holds both.

userGroupIds
string[]

Filter by user groups; a metric matches when one of them links it

sort
string[]

Sort instructions (field and direction pairs). The fields are name, createdAt, and the active revision's agreement and annotationCount. Sorted by agreement, a metric with no agreement comes last in both directions. Sorted by agreement or annotationCount, a metric with no active revision comes last in both directions.

limit
integer
default:10000

Maximum number of results

Required range: 0 <= x <= 9007199254740991
offset
integer
default:0

Number of results to skip

Required range: x >= 0
organizationId
string

List the metrics of this organization and the Galtea metrics, instead of the caller's organization. Only a caller who may read another organization (ADMIN, ADMIN_READER) names one; any other caller answers 403. Cannot be combined with allOrganizations.

Minimum string length: 1

Response

Metrics retrieved successfully

id
string
required

Metric ID.

Example:

"metric_123"

organizationId
string | null
required

The organization of the metric. Null for a Galtea metric.

Example:

"org_123"

userId
string | null
required
Example:

"user_123"

name
string
required

Metric name, unique in its organization.

Example:

"Accuracy"

description
string | null
required
Example:

"Measures the accuracy of responses"

tags
string[]
required
Example:
documentationUrl
string | null
required
Example:

"https://docs.example.com/metrics/accuracy"

source
enum<string> | null
required

Evaluation method for the metric. FULL_PROMPT is deprecated for creation — POST /metrics rejects it with a 400. Use PARTIAL_PROMPT for new AI Evaluation metrics. The value remains in the enum because existing FULL_PROMPT metrics are still returned by reads and filters. DECISION is the decision model, accepted only where the deployment enables it.

Available options:
SELF_HOSTED,
FULL_PROMPT,
PARTIAL_PROMPT,
HUMAN_EVALUATION,
GEVAL,
DEEPEVAL,
DETERMINISTIC,
DECISION
Example:

"PARTIAL_PROMPT"

activeRevisionId
string | null
required
read-only

The revision that evaluations of this metric run. Null when no revision is active.

Example:

"revision_123"

activeRevision
object
required

The label, judge settings, dates and judge figures of the active revision, so a list shows them without reading each revision. Null when no revision is active.

createdAt
string<date-time>
required
disabledAt
string<date-time> | null
required
read-only

The metric's own disabled date. It ignores the evaluator model of each revision: read a revision for that.