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

# Get Trace

> Get the full event trace, screenshots, and recording for a run



## OpenAPI

````yaml get /api/agent-runs/{run_id}/trace
openapi: 3.1.0
info:
  title: Axion Backend API
  description: Backend API for Axion platform with desktop automation capabilities
  version: 1.0.0
servers:
  - url: https://api.getgranite.ai
    description: Production server
  - url: http://localhost:8000
    description: Local development server
security: []
tags:
  - name: Authentication
    description: User authentication and session management
  - name: Organizations
    description: Organization management and membership
  - name: Health
    description: API health and status monitoring
  - name: Automations
    description: Automation planning and execution
  - name: MIG
    description: Managed Instance Group operations
  - name: Agent
    description: Agent execution and streaming
  - name: Onboarding
    description: Organization onboarding flow
  - name: Organization Automations
    description: Organization automation endpoint management
  - name: Organization Endpoints
    description: Public endpoints for organization automations
  - name: Analytics
    description: Analytics and reporting endpoints
paths:
  /api/agent-runs/{run_id}/trace:
    get:
      tags:
        - Agent
      summary: Get detailed agent run trace
      description: Get the full event trace, screenshots, and recording for a run
      operationId: getAgentRunTrace
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentRunTraceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentRunTraceResponse:
      properties:
        agent_run_id:
          type: string
          title: Agent Run Id
          description: Agent run identifier
        rpa_run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Rpa Run Id
          description: Associated RPA run identifier
        message_trace:
          items:
            $ref: '#/components/schemas/AgentRunTraceEvent'
          type: array
          title: Message Trace
          description: Normalized event timeline
        screenshots:
          items:
            type: string
          type: array
          title: Screenshots
          description: Signed screenshot URLs
        recording:
          anyOf:
            - $ref: '#/components/schemas/AgentRunRecording'
            - type: 'null'
          description: Execution recording metadata
      type: object
      required:
        - agent_run_id
      title: AgentRunTraceResponse
      description: Detailed agent run trace with media
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentRunTraceEvent:
      properties:
        timestamp:
          anyOf:
            - type: string
            - type: 'null'
          title: Timestamp
          description: Event timestamp
        source:
          type: string
          title: Source
          description: Event source
        event_type:
          type: string
          title: Event Type
          description: Event type
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
          description: Event content
        details:
          additionalProperties: true
          type: object
          title: Details
          description: Raw event details
      type: object
      required:
        - source
        - event_type
      title: AgentRunTraceEvent
      description: Normalized event for agent run trace
    AgentRunRecording:
      properties:
        recording_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Recording Url
          description: GCS recording URI
        signed_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Signed Url
          description: Signed URL for playback
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
          description: Recording filename
        uploaded_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Uploaded At
          description: Upload timestamp
        file_size_mb:
          anyOf:
            - type: number
            - type: 'null'
          title: File Size Mb
          description: File size in MB
        expires_in_hours:
          anyOf:
            - type: integer
            - type: 'null'
          title: Expires In Hours
          description: Signed URL expiry
      type: object
      title: AgentRunRecording
      description: Recording metadata for an agent run
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````