Base URL
The Stably API is built on REST principles. We enforce HTTPS in every request to improve data security, integrity, and privacy. All requests contain the following base URL:Authentication
To authenticate, you need to add anAuthorization header with your API key using the Bearer scheme.
If you do not see the “Team API Keys” setting, please ensure you have admin or owner permissions for your org
Response Codes
Stably uses standard HTTP codes to indicate the success or failure of your requests. In general,2xx HTTP codes correspond to success, 4xx codes are for user-related failures, and 5xx codes are for infrastructure issues.
| Status | Description |
|---|---|
200 | Successful request. |
400 | Check that the parameters were correct. |
401 | The API key used was missing or invalid. |
404 | The resource was not found. |
500 | Indicates an error with Stably servers. |
Run Tests
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.