The Stably API allows you to programmatically trigger and monitor test suite runs. A typical workflow looks like:
Classic
Agents
1
Trigger a test suite run
Use POST /v1/testSuite/{testSuiteId}/run to start a test suite execution.
2
Poll for status
Use GET /v1/testSuiteRun/{testSuiteRunId}/status to check if the run is still in progress.
3
Retrieve results
Once complete, use GET /v1/testSuiteRun/{testSuiteRunId}/result to get detailed test results.
1
Trigger an agent test run
Use POST /v1/projects/{projectId}/runs to start an agent-based test execution.
2
Poll for status and get results
Use GET /v1/projects/{projectId}/runs/{runId} to check if the run is still in progress (read the status).
If the status indicates the run has completed, you can read the results from the results field.
You can optionally pass branch to associate the run with a specific git branch, environment to select a named environment, and playwrightProjectName to target a specific Playwright project.