import requests
url = "https://app.langwatch.ai/api/v1/test-suites"
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/v1/test-suites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/v1/test-suites \
--header 'X-Auth-Token: <api-key>'[
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"scenarioIds": [
"<string>"
],
"scenarioCount": 123,
"archivedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"platformUrl": "<string>"
}
]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.
import requests
url = "https://app.langwatch.ai/api/v1/test-suites"
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/v1/test-suites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/v1/test-suites \
--header 'X-Auth-Token: <api-key>'[
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"scenarioIds": [
"<string>"
],
"scenarioCount": 123,
"archivedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"platformUrl": "<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.
Query Parameters
Include archived test suites in the list. true, 1, yes for yes; false, 0, no or omitted for no.
Response
Success
The test suite id.
The test suite name.
The suite's address in the platform. It is kept when the suite is renamed.
The scenarios filed in this suite, in the order it shows them.
How many scenarios are filed in it.
When the suite was archived, or null while it is active.
When the suite was created.
When the suite was last written.
Where to open this test suite in the LangWatch platform.
Was this page helpful?