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.
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.
Try this endpoint
app.langwatch.ai
API key · X-Auth-Token
Kept in this tab. Cleared when you reload.
Include archived run plans in the list. true, 1, yes for yes; false, 0, no or omitted for no.
The response appears below.
Request and response examples
import osimport requestsorigin = "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())const url = "https://app.langwatch.ai/api/v1/run-plans";const response = await fetch(url, { method: "GET", headers: { "X-Auth-Token": process.env.LANGWATCH_API_KEY!, },});const data = await response.json();curl --request GET \ --url 'https://app.langwatch.ai/api/v1/run-plans' \ --header "X-Auth-Token: $LANGWATCH_API_KEY"Call the LangWatch API from this project.Request: GET https://app.langwatch.ai/api/v1/run-plansReference: https://langwatch.ai/docs/api-reference/run-plans/list-run-plans.mdAuthentication: send the X-Auth-Token header, read from the LANGWATCH_API_KEY environment variable. Never hard-code the key.Use the HTTP client this project already uses, handle non-2xx responses, and show me the parsed result.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" }]Query parameters
includeArchivedstringInclude archived run plans in the list. true, 1, yes for yes; false, 0, no or omitted for no.
Responses
200Success
application/json
object[]idstringrequiredThe run plan id.
namestringrequiredThe run plan name. This is the plan's identity: a run started under this name joins this plan.
slugstringrequiredThe plan's address in the platform. It is kept when the plan is renamed, so run history never moves.
scopeobjectrequiredWhat 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[]requiredThe scenarios the last run of this plan covered.
targetsobject[]requiredWhat the plan runs against, in the order the results show. A target carrying runParameters runs with those values.
repeatCountnumberrequiredHow many times each scenario and target pairing runs.
simulatorModelstring | nullrequiredThe model that plays the user, or null for the scenario or project default.
judgeModelstring | nullrequiredThe model that judges the run, or null for the scenario or project default.
traceQuietPeriodMsinteger | nullMilliseconds 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 | nullMilliseconds 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[]requiredThe labels the plan carries.
evaluatorsobject[]The plan's own evaluators. Absent on servers that predate evaluators on this family.
archivedAtstring | nullrequiredWhen the plan was archived, or null while it is active.
createdAtstringrequiredWhen the plan was created.
updatedAtstringrequiredWhen the plan was last written.
platformUrlstring (uri)requiredWhere to open this run plan in the LangWatch platform.