Skip to contentSkip to page list

Docs

List the project's run plans

List the project's run plans. Archived plans are left out unless includeArchived is set. Test suites are not run plans and are listed by the test suites family.

GET/api/v1/run-plans
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/run-plans"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

[  {    "id": "string",    "name": "string",    "slug": "string",    "scope": {      "mode": "all"    },    "scenarioIds": [      "string"    ],    "targets": [      {        "type": "prompt",        "referenceId": "string",        "scenarioMappings": {},        "runParameters": {},        "runSecretParameterNames": [          "string"        ]      }    ],    "repeatCount": 0,    "simulatorModel": "string",    "judgeModel": "string",    "traceQuietPeriodMs": -9007199254740991,    "traceWaitTimeoutMs": -9007199254740991,    "labels": [      "string"    ],    "evaluators": [      {        "id": "string",        "evaluatorId": "string",        "required": false,        "mappings": {}      }    ],    "archivedAt": "string",    "createdAt": "string",    "updatedAt": "string",    "platformUrl": "string"  }]
api-reference/run-plans/list-run-plans

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.

Query parameters

includeArchivedstring

Include archived run plans in the list. true, 1, yes for yes; false, 0, no or omitted for no.

Responses

200

Success

application/json

object[]
idstringrequired

The run plan id.

namestringrequired

The run plan name. This is the plan's identity: a run started under this name joins this plan.

slugstringrequired

The plan's address in the platform. It is kept when the plan is renamed, so run history never moves.

scopeobjectrequired

What the run plan covers: all (every active scenario), test_suites (the scenarios filed in the named test suites), labels (the scenarios carrying any of the labels), or scenarios (the scenarioIds sent with the configuration). A dynamic scope is resolved again at every run, so a scenario written later runs without editing the plan.

scenarioIdsstring[]required

The scenarios the last run of this plan covered.

targetsobject[]required

What the plan runs against, in the order the results show. A target carrying runParameters runs with those values.

repeatCountnumberrequired

How many times each scenario and target pairing runs.

simulatorModelstring | nullrequired

The model that plays the user, or null for the scenario or project default.

judgeModelstring | nullrequired

The model that judges the run, or null for the scenario or project default.

traceQuietPeriodMsinteger | null

Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the scenario setting or the project's recommendation. Absent on servers that predate judge trace settings.

traceWaitTimeoutMsinteger | null

Milliseconds the judge waits for the agent's trace before a verdict, or null for the scenario setting or the project's recommendation. Absent on servers that predate judge trace settings.

labelsstring[]required

The labels the plan carries.

evaluatorsobject[]

The plan's own evaluators. Absent on servers that predate evaluators on this family.

archivedAtstring | nullrequired

When the plan was archived, or null while it is active.

createdAtstringrequired

When the plan was created.

updatedAtstringrequired

When the plan was last written.

platformUrlstring (uri)required

Where to open this run plan in the LangWatch platform.

Documentation