Skip to contentSkip to page list

Docs

List the project's test suites

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

GET/api/v1/test-suites
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/test-suites"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",    "scenarioIds": [      "string"    ],    "scenarioCount": 0,    "fields": [      {        "identifier": "string",        "type": "text"      }    ],    "evaluators": [      {        "id": "string",        "evaluatorId": "string",        "required": false,        "mappings": {}      }    ],    "archivedAt": "string",    "createdAt": "string",    "updatedAt": "string",    "platformUrl": "string"  }]
api-reference/test-suites/list-test-suites

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 test suites in the list. true, 1, yes for yes; false, 0, no or omitted for no.

Responses

200

Success

application/json

object[]
idstringrequired

The test suite id.

namestringrequired

The test suite name.

slugstringrequired

The suite's address in the platform. It is kept when the suite is renamed.

scenarioIdsstring[]required

The scenarios filed in this suite, in the order it shows them.

scenarioCountnumberrequired

How many scenarios are filed in it.

fieldsobject[]

The fields the test suite declares. Absent on servers that predate fields on this family.

evaluatorsobject[]

The evaluators attached to the test suite. Absent on servers that predate evaluators on this family.

archivedAtstring | nullrequired

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

createdAtstringrequired

When the suite was created.

updatedAtstringrequired

When the suite was last written.

platformUrlstring (uri)required

Where to open this test suite in the LangWatch platform.

Documentation