> ## 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.

# Get run

> Fetches a run by its short ID. Pass `testCases: "all"` or `"failed"` to include nested test-case results, and `issues` to include detected issues (`all` or a category such as `accessibility`; omitted by default). Use `get_run_issues` to fetch only the issues.



## OpenAPI

````yaml /api-reference/api.json get /v1/run/{shortId}
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: Release Checks
  - name: Projects
paths:
  /v1/run/{shortId}:
    get:
      tags:
        - Runs
      summary: Get run
      description: >-
        Fetches a run by its short ID. Pass `testCases: "all"` or `"failed"` to
        include nested test-case results, and `issues` to include detected
        issues (`all` or a category such as `accessibility`; omitted by
        default). Use `get_run_issues` to fetch only the issues.
      operationId: GetRun
      parameters:
        - name: shortId
          in: path
          required: true
          schema:
            type: string
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/GetRunQuery'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRunResponse'
components:
  schemas:
    GetRunQuery:
      type: object
      properties:
        testCases:
          type: string
          enum:
            - failed
            - all
        issues:
          anyOf:
            - type: string
              enum:
                - all
            - $ref: '#/components/schemas/RunIssueCategory'
          description: >-
            Include issues detected during the run. Omitted by default to keep
            responses small. Pass `all` for every issue, or a category (e.g.
            `accessibility`) to include only that type.
        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.
    GetRunResponse:
      type: object
      required:
        - shortId
        - status
        - result
        - id
        - runTestCases
      properties:
        shortId:
          type: string
        status:
          type: string
          description: >-
            Run lifecycle status: `INITIATED`, `RUNNING`, `COMPLETED`, `ERROR`,
            or `CANCELLED`.
        result:
          type: string
          nullable: true
          description: >-
            Run outcome once status is `COMPLETED`: `PASSED`, `FAILED`, or
            `SKIPPED`. `null` while the run is still in progress.
        id:
          type: string
        runTestCases:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCase'
        issues:
          type: array
          items:
            $ref: '#/components/schemas/RunIssue'
          description: >-
            Issues detected during the run, deduplicated across its test cases.
            Only present when requested via the `issues` query parameter.
    RunIssueCategory:
      type: string
      enum:
        - accessibility
        - console
        - hosting
        - failed_test
      description: Category of issue detected during a run.
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    RunTestCase:
      type: object
      required:
        - id
        - shortId
        - name
        - status
        - result
        - resultTitle
        - evaluationThought
        - errorCode
        - classification
        - promptGoal
        - promptExamples
      properties:
        id:
          type: string
        shortId:
          type: string
        name:
          type: string
        status:
          type: string
        result:
          type: string
          nullable: true
        resultTitle:
          type: string
          nullable: true
        evaluationThought:
          type: string
          nullable: true
          description: The evaluator's reasoning for the pass/fail verdict.
        errorCode:
          type: string
          nullable: true
          description: >-
            Error classification when the test did not cleanly pass/fail, e.g.
            `TEST_FAILED` (real product failure) vs an `AGENT_`/`PLATFORM_`
            execution miss. `null` for a clean pass.
        classification:
          type: string
          nullable: true
          description: '`POSITIVE` (expected to succeed) or `NEGATIVE` (expected to fail).'
        promptGoal:
          type: string
          nullable: true
        promptExamples:
          type: string
          nullable: true
    RunIssue:
      type: object
      required:
        - id
        - shortId
        - title
        - description
        - severity
        - issueType
        - helpUrl
        - tags
        - status
        - testCases
      properties:
        id:
          type: string
        shortId:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        severity:
          type: string
        issueType:
          type: string
          description: >-
            The category of the issue, e.g. `ACCESSIBILITY`, `CONSOLE`,
            `HOSTING`, or `FAILED_TEST`.
        helpUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        status:
          type: string
        testCases:
          type: array
          items:
            $ref: '#/components/schemas/RunIssueTestCase'
          description: Test cases in the run where this issue was detected.
      description: >-
        An issue detected during the run, deduplicated and aggregated across the
        test cases that triggered it.
    RunIssueTestCase:
      type: object
      required:
        - shortId
        - name
      properties:
        shortId:
          type: string
        name:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````