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

> Fetches a single run test case (one test's execution within a run) by its short ID — the `<shortId>` in a `/results/test/<shortId>` URL. Returns the goal and success criteria, the evaluator's reasoning, the result and error classification, durations, and a deep link plus best-effort media URLs. Use `get_run_test_case_trace` for the step-by-step action trace and `get_test_case_history` for the pass/fail trend.



## OpenAPI

````yaml /api-reference/api.json get /v1/run-test-case/{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-test-case/{shortId}:
    get:
      tags:
        - Runs
      summary: Get run test case
      description: >-
        Fetches a single run test case (one test's execution within a run) by
        its short ID — the `<shortId>` in a `/results/test/<shortId>` URL.
        Returns the goal and success criteria, the evaluator's reasoning, the
        result and error classification, durations, and a deep link plus
        best-effort media URLs. Use `get_run_test_case_trace` for the
        step-by-step action trace and `get_test_case_history` for the pass/fail
        trend.
      operationId: GetRunTestCase
      parameters:
        - name: shortId
          in: path
          required: true
          schema:
            type: string
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/GetRunTestCaseQuery'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRunTestCaseResponse'
components:
  schemas:
    GetRunTestCaseQuery:
      type: object
      properties:
        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.
    GetRunTestCaseResponse:
      type: object
      required:
        - id
        - shortId
        - name
        - status
        - result
        - resultTitle
        - evaluationThought
        - errorCode
        - classification
        - promptGoal
        - promptExamples
        - runShortId
        - projectTestCaseId
        - startedAt
        - completedAt
        - durationMs
        - url
        - screenshotUrl
        - recordingUrl
        - outboundIpAddress
      properties:
        id:
          type: string
        shortId:
          type: string
        name:
          type: string
        status:
          type: string
          description: >-
            Run lifecycle status: `INITIATED`, `RUNNING`, `COMPLETED`, `ERROR`,
            or `CANCELLED`.
        result:
          type: string
          nullable: true
          description: >-
            Outcome once complete: `PASSED`, `FAILED`, or `SKIPPED`. `null`
            while still running.
        resultTitle:
          type: string
          nullable: true
          description: Short human-readable summary of the result.
        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
          description: The test's goal / instructions.
        promptExamples:
          type: string
          nullable: true
          description: The success criteria / examples the evaluator checks against.
        runShortId:
          type: string
          description: Short ID of the run this test case belongs to. Use with `get_run`.
        projectTestCaseId:
          type: string
          description: >-
            Stable project test case ID. Use with `get_test_case_history` to see
            the pass/fail trend.
        startedAt:
          type: string
          nullable: true
        completedAt:
          type: string
          nullable: true
        durationMs:
          type: integer
          format: int32
          nullable: true
          description: >-
            Wall-clock duration in milliseconds, when both timestamps are
            present.
        url:
          type: string
          description: >-
            Deep link to the recording and trace in the QA.tech UI. Always
            works; the media URLs below may be time-limited.
        screenshotUrl:
          type: string
          nullable: true
          description: >-
            Best-effort link to the final screenshot. May be a time-limited URL;
            use `url` for a durable view.
        recordingUrl:
          type: string
          nullable: true
          description: >-
            Best-effort link to the session video recording, if captured. May be
            a time-limited URL; use `url` for a durable view.
        outboundIpAddress:
          type: string
          nullable: true
          description: >-
            Public egress IP address seen by the application under test. null if
            not yet resolved or unavailable.
      description: >-
        Detailed view of a single run test case (one test's execution within a
        run), for root-cause investigation. Resolve the `<shortId>` from a
        `/results/test/<shortId>` URL.
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````