Start Run API
The Start Run API allows you to programmatically trigger test runs for your project. This endpoint is particularly useful for integrating QA.tech testing into your CI/CD pipelines and custom automation workflows.- Endpoint:
POST /run - Authentication: Bearer token (project API token)
- Content-Type:
application/json - Base URL:
https://api.qa.tech/v1
Authentication
Include your project’s API token in theAuthorization header:
Request Body
The request body is optional. When omitted, the server defaults totrigger: "API" and runs using the project’s default test plan. All fields are optional:
GitHub Trigger Fields
When usingtrigger: "GITHUB" (typically from a CI/CD integration), you can include additional context fields:
These fields provide attribution and context in the QA.tech dashboard. They are ignored when
trigger is "API" or omitted.
Application Overrides (applications)
applications is an array of objects. Each object has:
Environment override – use one of:
- New/preview environment:
{ "url": "https://...", "name": "Optional name" } - Existing environment:
{ "shortId": "env_aB3xY9" }
Slack Notification Overrides (notifications)
Use the notifications array to send per-run Slack updates:
always: Run started + final result summaryfailure: Only final summary when result is notPASSED
- Empty
notificationsarray →400(array must contain at least one element) - Slack not configured for project →
400(“Slack integration is not configured for this project…”) - Inaccessible channel(s) →
400(“Slack channel override failed. Ensure the QA.tech bot has access to: …”)
Example Requests
Basic Test Run
Test Run with Preview Environment
Useurl/name for a new preview environment, or shortId to reference an existing environment:
Test Run with Device Preset Override
Test Run with Slack Notification Override
Response Format
Success (200)
run.shortId to get run status or rerun.
Error Responses
All error responses can include a body such as:
{ "message": "Error message" }.
Related
- Get Run Status – Poll run status and get test results
- Rerun Tests – Rerun all or failed tests from a run
- Create Test Cases – Create test cases via API
- API Introduction – Authentication and IDs
- OpenAPI specification – Full API schema