Skip to main content
GET
Read an experiment's setup

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path Parameters

slug
string
required

The experiment's slug, or its id

Minimum string length: 1

Query Parameters

fields
string

Set to version to answer with the version and timestamp only

Response

Success

id
string
required
slug
string
required
version
integer
required

Send this back as expectedVersion to save safely

Required range: -9007199254740991 <= x <= 9007199254740991
updatedAt
string
required

ISO 8601 timestamp of the last save

name
string | null
state
object | null

The experiment setup: datasets, targets and evaluators. Read it, change it, send it back whole.

Last modified on October 12, 2026