Authentication
To authenticate, you need to add anAuthorization header with your API key using the Bearer scheme.
If you do not see the “API Keys” setting, please ensure you have developer or owner permissions for your org.
Run Tests
The Stably API allows you to programmatically trigger and monitor test suite runs. A typical workflow looks like:- Classic
- Agents
Poll for status
Use
GET /v1/testSuiteRun/{testSuiteRunId}/status to check if the run is still in progress.Quick Start Example
Below is a complete example of triggering a test run and polling for results using the Agents API.1. Trigger a run
branch to associate the run with a specific git branch, environment to select a named environment, and playwrightProjectName to target a specific Playwright project.
2. Poll for status and results
results:
QUEUED, RUNNING, PASSED, FAILED, TIMEDOUT, CANCELLED, INTERRUPTED.