List an experiment's versions
import requests
url = "https://app.langwatch.ai/api/v1/experiments/{slug}/versions"
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}/versions', 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}/versions \
--header 'X-Auth-Token: <api-key>'{
"versions": [
{
"version": 0,
"counterVersion": 0,
"autoSaved": true,
"commitMessage": "<string>",
"authorLabel": "user",
"authorId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"nextCursor": 0
}This response has no body data.This response has no body data.This response has no body data.Experiments
List an experiment's versions
Every saved version of the experiment’s setup, newest first. A commit, an agent write and a restore each add a numbered version. Ordinary typing rewrites one autosave row, which is the entry with autoSaved true. Page through them with limit and cursor.
GET
/
api
/
v1
/
experiments
/
{slug}
/
versions
List an experiment's versions
import requests
url = "https://app.langwatch.ai/api/v1/experiments/{slug}/versions"
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}/versions', 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}/versions \
--header 'X-Auth-Token: <api-key>'{
"versions": [
{
"version": 0,
"counterVersion": 0,
"autoSaved": true,
"commitMessage": "<string>",
"authorLabel": "user",
"authorId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"nextCursor": 0
}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
Versions per page, capped at 100
Required range:
x <= 9007199254740991The nextCursor of the previous page
Required range:
x <= 9007199254740991Last modified on October 12, 2026
Was this page helpful?