Skip to content

πŸͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(api): clarify v3 scores field groups and move v4 removal note to v2 endpoints (#14161)

Niklas Semmlere5c1a451c5b7
diff --git a/fern/apis/server/definition/legacy/scores-v2.yml b/fern/apis/server/definition/legacy/scores-v2.yml
index a3f5777365..0070b95163 100644
--- a/fern/apis/server/definition/legacy/scores-v2.yml
+++ b/fern/apis/server/definition/legacy/scores-v2.yml
@@ -8,7 +8,8 @@ service:
endpoints:
get-many:
docs: |
- **Deprecated.** Use `GET /api/public/v3/scores` instead.
+ **Deprecated.** Use `GET /api/public/v3/scores` instead. This endpoint
+ is no longer available on Langfuse v4 and later.
Get a list of scores (supports both trace and session scores)
method: GET
@@ -89,7 +90,8 @@ service:
response: GetScoresResponse
get-by-id:
docs: |
- **Deprecated.** Use `GET /api/public/v3/scores` instead.
+ **Deprecated.** Use `GET /api/public/v3/scores` with the `id` filter
+ instead. This endpoint is no longer available on Langfuse v4 and later.
Get a score (supports both trace and session scores)
method: GET
diff --git a/fern/apis/server/definition/scores.yml b/fern/apis/server/definition/scores.yml
index eec484b158..4d794a5e11 100644
--- a/fern/apis/server/definition/scores.yml
+++ b/fern/apis/server/definition/scores.yml
@@ -10,15 +10,22 @@ service:
docs: |
Get a list of scores with a polymorphic `value` field (v3).
- This endpoint requires Langfuse v4 or later.
-
The `value` field type depends on `dataType`:
- `NUMERIC` β†’ number
- `BOOLEAN` β†’ boolean
- `CATEGORICAL`, `TEXT`, `CORRECTION` β†’ string
- Use the `fields` parameter to include optional field groups beyond the
- default `core`. Unknown group names return HTTP 400.
+ The response always includes the core fields: id, projectId, name,
+ value, dataType, source, timestamp, environment, createdAt, updatedAt.
+
+ Additional field groups can be requested via the `fields` parameter:
+ - `details` β€” adds comment, configId, metadata
+ - `subject` β€” adds the subject object describing the entity the score
+ is attached to: kind (trace, observation, session, or experiment),
+ id, and traceId for observation-level scores
+ - `annotation` β€” adds authorUserId, queueId
+
+ Unknown group names return HTTP 400.
method: GET
path: /v3/scores
request:
@@ -33,8 +40,10 @@ service:
fields:
type: optional<string>
docs: >
- Comma-separated field groups to include. Allowed: core, details,
- subject, annotation. Defaults to "core". Unknown names return HTTP 400.
+ Comma-separated field groups to include in addition to the
+ always-returned core fields. Allowed: details, subject,
+ annotation β€” see the endpoint description for the fields each
+ group adds. Unknown names return HTTP 400.
id:
type: optional<string>
docs: Comma-separated list of score IDs to filter by (OR within, AND across filters).
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index bcaafec536..599ce31720 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -2309,7 +2309,8 @@ paths:
/api/public/v2/scores:
get:
description: |-
- **Deprecated.** Use `GET /api/public/v3/scores` instead.
+ **Deprecated.** Use `GET /api/public/v3/scores` instead. This endpoint
+ is no longer available on Langfuse v4 and later.
Get a list of scores (supports both trace and session scores)
operationId: legacy_scoresV2_get-many
@@ -2534,7 +2535,8 @@ paths:
/api/public/v2/scores/{scoreId}:
get:
description: |-
- **Deprecated.** Use `GET /api/public/v3/scores` instead.
+ **Deprecated.** Use `GET /api/public/v3/scores` with the `id` filter
+ instead. This endpoint is no longer available on Langfuse v4 and later.
Get a score (supports both trace and session scores)
operationId: legacy_scoresV2_get-by-id
@@ -5575,15 +5577,22 @@ paths:
description: |-
Get a list of scores with a polymorphic `value` field (v3).
- This endpoint requires Langfuse v4 or later.
-
The `value` field type depends on `dataType`:
- `NUMERIC` β†’ number
- `BOOLEAN` β†’ boolean
- `CATEGORICAL`, `TEXT`, `CORRECTION` β†’ string
- Use the `fields` parameter to include optional field groups beyond the
- default `core`. Unknown group names return HTTP 400.
+ The response always includes the core fields: id, projectId, name,
+ value, dataType, source, timestamp, environment, createdAt, updatedAt.
+
+ Additional field groups can be requested via the `fields` parameter:
+ - `details` β€” adds comment, configId, metadata
+ - `subject` β€” adds the subject object describing the entity the score
+ is attached to: kind (trace, observation, session, or experiment),
+ id, and traceId for observation-level scores
+ - `annotation` β€” adds authorUserId, queueId
+
+ Unknown group names return HTTP 400.
operationId: scores_getMany
tags:
- Scores
@@ -5610,9 +5619,10 @@ paths:
- name: fields
in: query
description: >-
- Comma-separated field groups to include. Allowed: core, details,
- subject, annotation. Defaults to "core". Unknown names return HTTP
- 400.
+ Comma-separated field groups to include in addition to the
+ always-returned core fields. Allowed: details, subject, annotation β€”
+ see the endpoint description for the fields each group adds. Unknown
+ names return HTTP 400.
required: false
schema:
type: string