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

# Get run console and network logs

> Retrieve browser console logs and network requests captured during a web run. Use this to debug failures: console errors, failed requests, and 4xx/5xx responses with redacted header and JSON body previews. Telemetry is captured for web runs only and becomes available after the run finishes; mobile runs return 404.



## OpenAPI

````yaml /openapi.json get /v1/runs/{id}/telemetry
openapi: 3.0.0
info:
  title: TestArmy API
  version: 1.0.0
  description: >-
    AI-powered browser automation API for QA testing. Automate web testing
    workflows using natural language prompts.
servers:
  - url: https://tester.army/api
    description: Production API server
security: []
paths:
  /v1/runs/{id}/telemetry:
    get:
      tags:
        - Test Runs
      summary: Get run console and network logs
      description: >-
        Retrieve browser console logs and network requests captured during a web
        run. Use this to debug failures: console errors, failed requests, and
        4xx/5xx responses with redacted header and JSON body previews. Telemetry
        is captured for web runs only and becomes available after the run
        finishes; mobile runs return 404.
      parameters:
        - schema:
            type: string
            format: uuid
            description: Test run ID
          required: true
          description: Test run ID
          name: id
          in: path
      responses:
        '200':
          description: Console and network telemetry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunTelemetryResponse'
        '400':
          description: Bad Request - Invalid input parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '404':
          description: Run not found or no telemetry captured for this run
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '429':
          description: Too Many Requests - Usage limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '504':
          description: Gateway Timeout - Test execution exceeded time limit
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
      security:
        - bearerAuth: []
components:
  schemas:
    RunTelemetryResponse:
      type: object
      properties:
        version:
          type: number
          enum:
            - 1
          description: Telemetry payload schema version
        console:
          type: array
          items:
            $ref: '#/components/schemas/RunTelemetryConsoleEntry'
          description: Browser console entries in capture order
        network:
          type: array
          items:
            $ref: '#/components/schemas/RunTelemetryNetworkEntry'
          description: >-
            Network requests in capture order (document, fetch, and XHR
            prioritized)
        counts:
          type: object
          properties:
            console:
              type: integer
              description: Console entries captured
            network:
              type: integer
              description: Network entries captured
            droppedConsole:
              type: integer
              description: Console entries dropped after the buffer cap
            droppedNetwork:
              type: integer
              description: Network entries dropped after the buffer cap
          required:
            - console
            - network
            - droppedConsole
            - droppedNetwork
          description: Capture counts including entries dropped by ring-buffer limits
      required:
        - version
        - console
        - network
        - counts
    RunTelemetryConsoleEntry:
      type: object
      properties:
        seq:
          type: integer
          description: Monotonic sequence number across console and network entries
        ts:
          type: string
          description: ISO timestamp of the entry
        type:
          type: string
          enum:
            - console_log
            - console_error
          description: Entry kind
        level:
          type: string
          description: Console level (log, info, warning, error, debug, ...)
        text:
          type: string
          description: Console message text
        args:
          type: array
          items:
            type: string
          description: Stringified console arguments
        url:
          type: string
          description: Page URL when the entry was emitted
        sourceUrl:
          type: string
          description: Script URL that emitted the entry
        line:
          type: integer
        column:
          type: integer
        stack:
          type: string
          description: Stack trace for errors
      required:
        - seq
        - ts
        - type
        - level
        - text
    RunTelemetryNetworkEntry:
      type: object
      properties:
        seq:
          type: integer
          description: Monotonic sequence number across console and network entries
        ts:
          type: string
          description: ISO timestamp of the request
        requestId:
          type: string
          description: Browser request identifier
        url:
          type: string
          description: Request URL (credential query params redacted)
        method:
          type: string
          description: HTTP method
        resourceType:
          type: string
          description: Browser resource type (document, fetch, xhr, ...)
        status:
          type: integer
          description: HTTP response status
        statusText:
          type: string
        mimeType:
          type: string
        durationMs:
          type: number
          description: Request duration in milliseconds
        requestHeaders:
          type: object
          additionalProperties:
            type: string
          description: Allowlisted request headers
        responseHeaders:
          type: object
          additionalProperties:
            type: string
          description: Allowlisted response headers
        requestBody:
          type: string
          description: >-
            JSON request body preview with secrets redacted (fetch/XHR only,
            truncated)
        responseBody:
          type: string
          description: >-
            JSON response body preview with secrets redacted (fetch/XHR only,
            truncated)
        failure:
          type: object
          properties:
            errorText:
              type: string
            canceled:
              type: boolean
          description: Present when the request failed before receiving a response
      required:
        - seq
        - ts
        - requestId
        - url
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key authentication using Bearer token format

````