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

> Returns the telemetry captured while a run test case executed: browser network requests (`network`), browser console output (`console`), or server-side API calls made by API tests (`apiCalls`, with truncated request/response bodies). Filter by URL regex and status to find the failing request behind an error. Capped per call; narrow the filters when `hasMore` is true.



## OpenAPI

````yaml /api-reference/api.json get /v1/run-test-case/{shortId}/logs
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
  - name: Knowledge
  - name: Rules
  - name: Issues
  - name: Automations
paths:
  /v1/run-test-case/{shortId}/logs:
    get:
      tags:
        - Runs
      summary: Get run test case logs
      description: >-
        Returns the telemetry captured while a run test case executed: browser
        network requests (`network`), browser console output (`console`), or
        server-side API calls made by API tests (`apiCalls`, with truncated
        request/response bodies). Filter by URL regex and status to find the
        failing request behind an error. Capped per call; narrow the filters
        when `hasMore` is true.
      operationId: GetRunTestCaseLogs
      parameters:
        - name: shortId
          in: path
          required: true
          schema:
            type: string
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/GetRunTestCaseLogsQuery'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRunTestCaseLogsResponse'
components:
  schemas:
    GetRunTestCaseLogsQuery:
      type: object
      required:
        - kind
      properties:
        kind:
          type: string
          enum:
            - network
            - console
            - apiCalls
          description: >-
            Which log to read: `network` (browser requests), `console` (browser
            console), or `apiCalls` (server-side API calls made by API tests).
        urlPattern:
          type: string
          description: >-
            Case-insensitive regex matched against the URL (`network`,
            `apiCalls`).
        statusFilter:
          type: string
          enum:
            - all
            - errors
            - success
          description: >-
            `errors` (4xx/5xx/failed), `success` (2xx/3xx), or `all` (default).
            Applies to `network` and `apiCalls`.
          default: all
        includeWarnings:
          type: boolean
          description: Include console warnings (`console` only).
        includeInfo:
          type: boolean
          description: Include info-level console logs (`console` only).
        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.
    GetRunTestCaseLogsResponse:
      type: object
      required:
        - runTestCaseShortId
        - kind
        - totalMatched
        - returned
        - hasMore
      properties:
        runTestCaseShortId:
          type: string
        kind:
          type: string
          enum:
            - network
            - console
            - apiCalls
        totalMatched:
          type: integer
          format: int32
          description: Entries matching the filters, before the per-call cap.
        returned:
          type: integer
          format: int32
        hasMore:
          type: boolean
        message:
          type: string
          description: Set when nothing was captured, or to hint at a broader filter.
        network:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCaseNetworkEntry'
        console:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCaseConsoleEntry'
        apiCalls:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCaseApiCallEntry'
      description: >-
        Captured browser/API telemetry for a run test case. Capped per call;
        `hasMore` signals that narrower filters are needed.
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    RunTestCaseNetworkEntry:
      type: object
      required:
        - url
        - method
        - statusCode
        - isError
      properties:
        url:
          type: string
        method:
          type: string
        statusCode:
          type: integer
          format: int32
          description: >-
            HTTP status. `0` means the request never completed (aborted, CORS,
            DNS).
        durationMs:
          type: integer
          format: int32
          nullable: true
        isError:
          type: boolean
        errorText:
          type: string
          description: Browser error text for failed requests, e.g. `net::ERR_ABORTED`.
        crossOriginInfo:
          type: string
        customExtraHeaders:
          type: array
          items:
            type: string
          description: >-
            Names of custom headers (from the environment or device preset)
            attached to the request. Values are never included.
      description: A browser network request captured during the execution.
    RunTestCaseConsoleEntry:
      type: object
      required:
        - level
        - message
        - relativeTimestampSeconds
      properties:
        level:
          type: string
          description: '`error`, `warning`, or `log`.'
        message:
          type: string
        source:
          type: string
          nullable: true
        line:
          type: integer
          format: int32
          nullable: true
        column:
          type: integer
          format: int32
          nullable: true
        relativeTimestampSeconds:
          type: integer
          format: int32
          description: Seconds since the first captured console entry.
      description: A browser console entry captured during the execution.
    RunTestCaseApiCallEntry:
      type: object
      required:
        - url
        - method
        - statusCode
        - success
        - durationMs
      properties:
        url:
          type: string
        method:
          type: string
        statusCode:
          type: integer
          format: int32
          nullable: true
        success:
          type: boolean
        textResult:
          type: string
          nullable: true
        durationMs:
          type: integer
          format: int32
          nullable: true
        requestHeaders:
          type: object
          additionalProperties:
            type: string
        requestBody:
          type: string
        requestBodyTruncated:
          type: boolean
        responseBody:
          type: string
        responseBodyTruncated:
          type: boolean
        errorMessage:
          type: string
      description: >-
        A server-side API call the agent made (API application tests), with
        truncated bodies.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````