> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qa.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Start test run

> Execute a run for a given project. Supports API, GITHUB, or GITLAB trigger. For version-control triggers, provide actor, branch, commitHash, commitMessage, and repository. For GITLAB, also provide repositoryUrl so links work with GitLab.com and self-hosted instances. Use applications to override environment or device preset per run. On applications[].environment, optional customHeaders and basicAuth persist auth or protection-bypass rules on the environment; omit a field to leave stored rules unchanged, or pass an empty list to clear them.



## OpenAPI

````yaml /api-reference/api.json post /v1/run
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Configs
  - name: Labels
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
paths:
  /v1/run:
    post:
      tags:
        - Runs
      summary: Start test run
      description: >-
        Execute a run for a given project. Supports API, GITHUB, or GITLAB
        trigger. For version-control triggers, provide actor, branch,
        commitHash, commitMessage, and repository. For GITLAB, also provide
        repositoryUrl so links work with GitLab.com and self-hosted instances.
        Use applications to override environment or device preset per run. On
        applications[].environment, optional customHeaders and basicAuth persist
        auth or protection-bypass rules on the environment; omit a field to
        leave stored rules unchanged, or pass an empty list to clear them.
      operationId: RunProject
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResponse'
components:
  schemas:
    RunRequest:
      type: object
      properties:
        trigger:
          type: string
          enum:
            - API
            - GITHUB
            - GITLAB
        actor:
          type: string
          description: 'Username that triggered the CI job. Example: `octocat`.'
        branch:
          type: string
          description: >-
            Branch the run was triggered from. Example: `main` or
            `refs/heads/main`.
        commitHash:
          type: string
          description: >-
            Full commit SHA the run was triggered for. Used to link the run back
            to the commit.
        commitMessage:
          type: string
          description: Commit message subject for the triggering commit.
        repository:
          type: string
          description: >-
            Repository the run was triggered from, as `owner/name`. Example:
            `QAdottech/qatech`.
        repositoryUrl:
          type: string
          format: uri
          pattern: ^https?:\x2f\x2f
          description: >-
            Base repository URL for GitLab, including the origin and project
            path. Supports self-hosted GitLab instances.
        testPlanShortId:
          $ref: '#/components/schemas/TestPlanShortId'
        testCaseIds:
          type: array
          items:
            type: string
        applications:
          type: array
          items:
            $ref: '#/components/schemas/ApplicationOverride'
          description: >-
            Per-run application overrides. On environment, optional
            customHeaders and basicAuth persist auth or protection-bypass rules.
            Omit either field to leave stored rules unchanged; pass an empty
            list to clear them.
        notifications:
          type: array
          items:
            $ref: '#/components/schemas/NotificationOverride'
        parameters:
          $ref: '#/components/schemas/RunParametersOverrides'
        skipAgentCache:
          type: boolean
          description: >-
            Set to `true` to run every test in this run without the agent cache,
            so the agent works out each step fresh instead of reusing cached
            outputs. Applies to this run only. Omitted or `false` keeps each
            test's own Agent Cache setting.
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
      description: >-
        Request body for triggering a test run. Supports GitHub and GitLab
        trigger fields, application overrides, and optional `parameters` for
        config overrides (merged into the blueprint).
    RunResponse:
      type: object
      required:
        - success
        - run
      properties:
        success:
          type: boolean
        run:
          $ref: '#/components/schemas/Run'
    TestPlanShortId:
      type: string
      pattern: ^pln(-.+_.+|_.+)$
    ApplicationOverride:
      type: object
      required:
        - applicationShortId
      properties:
        applicationShortId:
          $ref: '#/components/schemas/ApplicationShortId'
        devicePresetShortId:
          $ref: '#/components/schemas/DevicePresetShortId'
        issueReporters:
          allOf:
            - $ref: '#/components/schemas/IssueReportersOverride'
          description: >-
            Which issue reporters run for this application on this run. Partial
            accessibility and performance objects are completed when the run is
            created.
        environment:
          allOf:
            - $ref: '#/components/schemas/ApplicationEnvironmentOverride'
          description: >-
            Environment to use for this application. Optional customHeaders and
            basicAuth persist auth or protection-bypass rules on the
            environment.
      description: Override application, environment, or device preset for a specific run
    NotificationOverride:
      anyOf:
        - $ref: '#/components/schemas/SlackNotificationOverride'
        - $ref: '#/components/schemas/EmailNotificationOverride'
        - $ref: '#/components/schemas/TeamsNotificationOverride'
        - $ref: '#/components/schemas/NoneNotificationOverride'
      description: >-
        Per-run notification override. Use type none to suppress all
        notifications for the run, including project defaults.
    RunParametersOverrides:
      type: object
      properties:
        configs:
          type: object
          additionalProperties: {}
          description: >-
            Config identifier → full config object (replaces stored config data
            when present).
        configsByEnvironment:
          type: object
          additionalProperties:
            type: object
            additionalProperties: {}
          description: Environment id → config identifier → full config object.
      description: >-
        Optional run-time parameter overrides merged into the blueprint (after
        test plan defaults). Use `configs` to replace full config payloads by
        config short id (map keys are strings such as `cfg_...` or
        human-readable slugs); use `configsByEnvironment` for
        environment-specific overrides (outer key is environment UUID).
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    Run:
      type: object
      required:
        - id
        - shortId
        - url
        - testCount
        - testPlan
      properties:
        id:
          type: string
        shortId:
          type: string
        url:
          type: string
        testCount:
          type: integer
          format: int32
        testPlan:
          $ref: '#/components/schemas/TestPlan'
    ApplicationShortId:
      type: string
      pattern: ^app(-.+_.+|_.+)$
    DevicePresetShortId:
      type: string
      pattern: ^preset(-.+_.+|_.+)$
    IssueReportersOverride:
      type: object
      properties:
        accessibility:
          $ref: '#/components/schemas/AccessibilityIssuesOverride'
        performance:
          $ref: '#/components/schemas/PerformanceIssuesOverride'
      description: Which issue reporters run for this application on this run.
    ApplicationEnvironmentOverride:
      anyOf:
        - $ref: '#/components/schemas/ApplicationEnvironmentOverrideByUrl'
        - $ref: '#/components/schemas/ApplicationEnvironmentOverrideByShortId'
        - $ref: >-
            #/components/schemas/ApplicationEnvironmentOverrideByApplicationBuildShortId
    SlackNotificationOverride:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - slack
        channel:
          type: string
          description: >-
            Slack channel ID (e.g. `C0478ABCDEF`). Required unless `enabled` is
            `false`. The QA.tech Slack bot must have access to the channel.
        notifyOn:
          type: string
          enum:
            - failure
            - always
          description: >-
            `always` (default) sends run-started and final-result messages;
            `failure` sends only the final summary when the result is not
            PASSED.
        enabled:
          type: boolean
          description: >-
            Set to `false` to suppress Slack for this run, including project
            defaults.
    EmailNotificationOverride:
      type: object
      required:
        - type
        - recipients
      properties:
        type:
          type: string
          enum:
            - email
        recipients:
          type: array
          items:
            type: string
          description: >-
            Email addresses to notify for this run. Replaces test-plan email
            recipients when provided.
        notifyOn:
          type: string
          enum:
            - failure
            - always
          description: >-
            `always` (default) sends on every completion; `failure` sends only
            when the result is not PASSED.
        enabled:
          type: boolean
          description: >-
            Set to `false` to suppress email for this run. Defaults to `true`
            when `recipients` is non-empty.
    TeamsNotificationOverride:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - teams
        notifyOn:
          type: string
          enum:
            - failure
            - always
          description: >-
            `always` (default) or `failure`. Uses the project Microsoft Teams
            integration webhook.
        enabled:
          type: boolean
          description: >-
            Set to `false` to suppress Teams for this run, including project
            defaults. Defaults to `true`.
    NoneNotificationOverride:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - none
    TestPlan:
      type: object
      required:
        - name
        - shortId
      properties:
        name:
          type: string
        shortId:
          $ref: '#/components/schemas/TestPlanShortId'
    AccessibilityIssuesOverride:
      type: object
      properties:
        enabled:
          type: boolean
          description: >-
            Watch for axe accessibility issues on this application for this run.
            Omit to use the caller default: on for API runs, off for MCP.
        tags:
          type: array
          items:
            type: string
          description: >-
            axe-core tags to scan, such as wcag2aa. Omit for the default WCAG
            2.0, 2.1, and 2.2 set.
        disabledRules:
          type: array
          items:
            type: string
          description: >-
            axe-core rule ids to skip. Omit for the default disabled rules. An
            empty list disables none.
        includeIncomplete:
          type: boolean
          description: >-
            File axe incomplete results as well as violations. Omit to include
            them.
        iframes:
          type: boolean
          description: Scan inside iframes. Omit to skip iframes.
      description: >-
        Partial accessibility scan override. Omitted fields are filled when the
        run is created.
    PerformanceIssuesOverride:
      type: object
      properties:
        enabled:
          type: boolean
          description: >-
            Record Core Web Vitals, blocking tasks, and heap and CPU samples on
            this application for this run. Omit to leave it off.
    ApplicationEnvironmentOverrideByUrl:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          pattern: ^https?:\x2f\x2f
          description: Base URL of the environment. Must use http or https.
        name:
          type: string
        customHeaders:
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentCustomHeaderRule'
          description: >-
            Custom headers for this environment. Persisted on create and on
            reuse. Omit to leave stored headers unchanged; pass an empty list to
            clear them.
        basicAuth:
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentBasicAuthRule'
          description: >-
            Basic auth rules for this environment. Persisted on create and on
            reuse. Omit to leave stored rules unchanged; pass an empty list to
            clear them.
    ApplicationEnvironmentOverrideByShortId:
      type: object
      required:
        - shortId
      properties:
        shortId:
          $ref: '#/components/schemas/EnvironmentShortId'
        customHeaders:
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentCustomHeaderRule'
          description: >-
            Replace custom headers on the existing environment. Omit to leave
            stored headers unchanged; pass an empty list to clear them.
        basicAuth:
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentBasicAuthRule'
          description: >-
            Replace basic auth rules on the existing environment. Omit to leave
            stored rules unchanged; pass an empty list to clear them.
    ApplicationEnvironmentOverrideByApplicationBuildShortId:
      type: object
      required:
        - applicationBuildShortId
      properties:
        applicationBuildShortId:
          $ref: '#/components/schemas/ApplicationBuildShortId'
        otherApplicationBuildShortIds:
          type: array
          items:
            $ref: '#/components/schemas/ApplicationBuildShortId'
        customHeaders:
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentCustomHeaderRule'
          description: >-
            Custom headers for the preview environment created or reused for
            this build. Omit to leave stored headers unchanged; pass an empty
            list to clear them.
        basicAuth:
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentBasicAuthRule'
          description: >-
            Basic auth rules for the preview environment created or reused for
            this build. Omit to leave stored rules unchanged; pass an empty list
            to clear them.
      description: >-
        Use a specific application build (created via
        `create_application_build`). Creates or reuses an environment with this
        build.
    EnvironmentCustomHeaderRule:
      type: object
      required:
        - domains
        - headers
      properties:
        domains:
          type: array
          items:
            type: string
          description: >-
            Host patterns that receive these headers. `*.preview.example.com`
            matches the apex and any subdomain.
        headers:
          type: object
          additionalProperties:
            type: string
          description: >-
            Header name to value. Applied by the platform on matching requests;
            generated test code cannot read the values.
      description: >-
        Host patterns (`*.preview.example.com` or an exact host) and the headers
        to attach to matching requests. Used for auth, deployment-protection
        bypass, and similar platform access. When provided on an environment
        override, the rules are persisted on the environment.
    EnvironmentBasicAuthRule:
      type: object
      required:
        - domains
        - username
        - password
      properties:
        domains:
          type: array
          items:
            type: string
          description: >-
            Host patterns that receive these credentials.
            `*.preview.example.com` matches the apex and any subdomain.
        username:
          type: string
          pattern: ^[^:]+$
          description: Basic auth username. May not contain `:`.
        password:
          type: string
          description: >-
            Basic auth password. Applied by the platform on matching requests;
            generated test code cannot read it.
      description: >-
        Host patterns (`*.preview.example.com` or an exact host) and the HTTP
        Basic Auth credentials to send to matching hosts. Browser, crawler, and
        API tests send `Authorization: Basic` to matching hosts only. When
        provided on an environment override, the rules are persisted on the
        environment.
    EnvironmentShortId:
      type: string
      pattern: ^env(-.+_.+|_.+)$
    ApplicationBuildShortId:
      type: string
      pattern: ^build(-.+_.+|_.+)$
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.