Read an experiment's setup
import requests
url = "https://app.langwatch.ai/api/v1/experiments/{slug}/workbench-state"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/v1/experiments/{slug}/workbench-state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/v1/experiments/{slug}/workbench-state \
--header 'X-Auth-Token: <api-key>'{
"id": "<string>",
"slug": "<string>",
"version": 0,
"updatedAt": "<string>",
"name": "<string>",
"state": {}
}This response has no body data.This response has no body data.This response has no body data.Experiments
Read an experiment's setup
The experiment’s datasets, targets and evaluators, with the version to send back when you save. Ask for fields=version to check for changes without transferring the setup.
GET
/
api
/
v1
/
experiments
/
{slug}
/
workbench-state
Read an experiment's setup
import requests
url = "https://app.langwatch.ai/api/v1/experiments/{slug}/workbench-state"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/v1/experiments/{slug}/workbench-state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/v1/experiments/{slug}/workbench-state \
--header 'X-Auth-Token: <api-key>'{
"id": "<string>",
"slug": "<string>",
"version": 0,
"updatedAt": "<string>",
"name": "<string>",
"state": {}
}This response has no body data.This response has no body data.This response has no body data.Authorizations
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
The experiment's slug, or its id
Minimum string length:
1Query Parameters
Set to version to answer with the version and timestamp only
Response
Success
Send this back as expectedVersion to save safely
Required range:
-9007199254740991 <= x <= 9007199254740991ISO 8601 timestamp of the last save
The experiment setup: datasets, targets and evaluators. Read it, change it, send it back whole.
Show child attributes
Show child attributes
Last modified on October 12, 2026
Was this page helpful?