Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Get results

GET
/api/v1/projects/{project}/experiments/{id}/results
curl --request GET \
--url 'http://localhost:8080/api/v1/projects/example/experiments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/results?limit=50' \
--cookie cetra_session=<cetra_session>

Any project member, or an API key with read.

project
required
string

Project UUID, URL-encoded org-slug/project-slug, or current.

id
required
string format: uuid

Experiment id.

errors_only
boolean

Keep only the rows with an error.

limit

Page size. Default 50, accepted range 1–1000.

Spec 09 § Conventions.

integer format: int32
default: 50 >= 1 <= 1000

Maximum number of rows to return (1–1000, default 50).

cursor
string

Opaque cursor from a previous page.

The summary of the experiment and one page of its rows.

Media typeapplication/json

GET …/experiments/{id}/results: the summary, and one page of rows.

object
next_cursor
required

The cursor of the next page, or null on the last page. Always present.

string | null
rows
required

One page of rows, by item id then repetition.

Array<object>

One result of an experiment, with its input and output.

object
cost_total

The cost of the trace. Omitted when unpriced.

number format: double
dataset_item_id
required

The dataset item.

string format: uuid
error

What went wrong. Omitted when none.

string
expected_output

Any JSON value.

input
required

Any JSON value.

latency_ns

The time the task took, in nanoseconds. Omitted when unknown.

integer format: int64
output

Any JSON value.

repetition
required

The repetition, 0 to repetitions − 1.

integer format: int64
scores
required

The row’s scores by name.

object
key
additional properties

One score of a result row. The design calls it ScoreValue; core already has that name.

object
data_type
required

The kind of value the score carries.

string
Allowed values: numeric boolean categorical text
value_num

The mean of the row’s numeric values of this score. Omitted when none.

number format: double
value_str

The label of a categorical score or the text of a text score. Omitted when none.

string
trace_id

The trace of the task run. Omitted when none.

string
/^[0-9a-fA-F]{32}$/
summary
required

The aggregated experiment.

object
cost_total

The sum of the traces’ costs. Omitted when no trace has a cost.

number format: double
error_count
required

Results with an error.

integer format: int64
experiment
required

The experiment.

object
created_at
required

Creation time. JSON is RFC 3339.

string format: date-time
dataset_id

The dataset. Omitted once the dataset is deleted.

string format: uuid
dataset_name
required

The dataset’s name when the experiment was created.

string
dataset_version
required

The dataset version the experiment is pinned to.

integer format: int64
description

Free text. Omitted when unset.

string
error

The error the experiment finished with. Omitted when none.

string
finished_at

When the experiment finished. Omitted while it runs. JSON is RFC 3339.

string format: date-time
id
required

Experiment id.

string format: uuid
item_count
required

Live items of the pinned version.

integer format: int64
metadata
required
object
key
additional properties
any
name
required

Not unique. 1 to 200 characters.

string
repetitions
required

Repetitions of every item, 1 to 20.

integer format: int64
result_count
required

Results stored so far.

integer format: int64
status
required

running, completed or failed.

string
Allowed values: running completed failed
latency_mean_ns

The mean latency. Omitted when no result has one.

integer format: int64
latency_p50_ns

The median latency, by nearest rank. Omitted when no result has one.

integer format: int64
latency_p95_ns

The 95th percentile latency, by nearest rank. Omitted when no result has one.

integer format: int64
result_count
required

Results stored.

integer format: int64
scores
required

One entry per score name, sorted by name.

Array<object>

One score of an experiment, over its rows.

object
count
required

Rows with at least one score of this name.

integer format: int64
data_type
required

The data type the experiment’s scores of this name mostly carry.

string
Allowed values: numeric boolean categorical text
histogram
required

Numeric scores only: the rows per bucket, 10 equal-width buckets from min to max (one bucket when min equals max); empty for other types.

Array<integer>
labels
required

Categoricals only: the rows per label.

object
key
additional properties
integer format: int64
max

The largest value. Omitted when none.

number format: double
mean

Numeric and categorical scores: the mean over the rows that have a value. Omitted when none.

number format: double
median

The median of the same values. Omitted when none.

number format: double
min

The smallest value. Omitted when none.

number format: double
name
required

The score’s name.

string
pass_rate

Booleans only: the share of rows that passed (the mean of 0 and 1). Omitted otherwise.

number format: double

Example

{
"rows": [
{
"scores": {
"additionalProperty": {
"data_type": "numeric"
}
}
}
],
"summary": {
"experiment": {
"status": "running"
},
"scores": [
{
"data_type": "numeric"
}
]
}
}

The request is malformed or a filter is invalid.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

No credentials, or the credentials are invalid.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The resource does not exist.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The query took longer than its time limit, needed more memory or temporary disk space than allowed, a filter deletion matched more than 100,000 traces, or the owner cannot be that user (code owner_not_allowed).

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

Too many requests.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The server is busy or a dependency is unavailable. Retry later.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}