Skip to contentSkip to page list

Docs

Get Versions

List an evaluator's versions, newest first, with the labels on each

GET/api/v1/evaluators/{evaluatorId}/versions
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/evaluators/<evaluatorId>/versions"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

{  "data": [    {      "id": "string",      "evaluatorId": "string",      "projectId": "string",      "version": 0,      "name": "string",      "type": "evaluator",      "config": {},      "workflowId": "string",      "commitMessage": "string",      "authorId": "string",      "authorKind": "user",      "author": {        "id": "string",        "name": "string",        "email": "string"      },      "createdAt": "2026-01-01T00:00:00Z",      "labels": [        "string"      ]    }  ],  "labels": [    {      "label": "string",      "version": 0    }  ]}
api-reference/evaluators-config/get-versions

Authorization

X-Auth-Tokenstringheaderrequired

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

evaluatorIdstringrequired

The evaluator id.

At least 1 character

Responses

200

Success

application/json

dataobject[]required
idstringrequired
evaluatorIdstringrequired
projectIdstringrequired
versionintegerrequired
Maximum 9007199254740991
namestringrequired
typestringrequired
One of"evaluator""code""workflow"
configobjectrequired
workflowIdstring | nullrequired
commitMessagestring | nullrequired
authorIdstring | nullrequired
authorKindstring | nullrequired
authorobject | nullrequired
createdAtstring (date-time)required
labelsstring[]required
labelsobject[]required
labelstringrequired
versionintegerrequired
Maximum 9007199254740991
404

Not Found

application/json

errorstringrequired
messagestring

Documentation