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

> Get a run by shortId with test cases



## 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: >-
    REST API for triggering and managing AI-powered test runs. Authenticate with
    a project API token (Authorization: Bearer <token>) found in Project
    Settings -> Integrations.
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
paths:
  /v1/run/{shortId}:
    get:
      tags:
        - Runs
      summary: Get run
      description: Get a run by shortId with test cases
      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
    GetRunResponse:
      type: object
      required:
        - id
        - shortId
        - status
        - result
        - runTestCases
      properties:
        id:
          type: string
        shortId:
          type: string
        status:
          type: string
        result:
          type: string
          nullable: true
        runTestCases:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCase'
    RunTestCase:
      type: object
      required:
        - id
        - shortId
        - name
        - status
        - result
        - resultTitle
        - evaluationThought
        - 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
        promptGoal:
          type: string
          nullable: true
        promptExamples:
          type: string
          nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````