List an experiment's versions
import requests
url = "https://app.langwatch.ai/api/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/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/experiments/{slug}/versions \
--header 'X-Auth-Token: <api-key>'{
"versions": [
{
"version": 123,
"autoSaved": true,
"commitMessage": "<string>",
"authorLabel": "user",
"authorId": "<string>",
"createdAt": "<string>"
}
],
"nextCursor": 123
}{
"error": "<string>",
"message": "<string>",
"fault": "<string>",
"tips": [
"<string>"
],
"docsUrl": "<string>"
}{
"error": "<string>",
"message": "<string>",
"fault": "<string>",
"tips": [
"<string>"
],
"docsUrl": "<string>"
}{
"error": "<string>",
"message": "<string>",
"fault": "<string>",
"tips": [
"<string>"
],
"docsUrl": "<string>"
}Experiments
List an experiment's versions
Every saved version of the experiment’s setup, newest first. Page through them with limit and cursor.
GET
/
api
/
experiments
/
{slug}
/
versions
List an experiment's versions
import requests
url = "https://app.langwatch.ai/api/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/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/experiments/{slug}/versions \
--header 'X-Auth-Token: <api-key>'{
"versions": [
{
"version": 123,
"autoSaved": true,
"commitMessage": "<string>",
"authorLabel": "user",
"authorId": "<string>",
"createdAt": "<string>"
}
],
"nextCursor": 123
}{
"error": "<string>",
"message": "<string>",
"fault": "<string>",
"tips": [
"<string>"
],
"docsUrl": "<string>"
}{
"error": "<string>",
"message": "<string>",
"fault": "<string>",
"tips": [
"<string>"
],
"docsUrl": "<string>"
}{
"error": "<string>",
"message": "<string>",
"fault": "<string>",
"tips": [
"<string>"
],
"docsUrl": "<string>"
}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
Query Parameters
Versions per page, capped at 100
Required range:
1 <= x <= 100The nextCursor of the previous page
Required range:
x >= 1Last modified on August 24, 2026
Was this page helpful?
⌘I