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

# Get a run's trace

> Full detailed trace for one run via the contract's ``get_trace``.

The contract's ``get_trace`` always returns a trace or raises: an absent trace
is ``TraceNotFoundError`` → 404, and every other backend error propagates as a
loud 500.



## OpenAPI

````yaml /openapi.json get /api/observability/runs/{trace_id}/trace
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.1.1
servers: []
security: []
paths:
  /api/observability/runs/{trace_id}/trace:
    get:
      tags:
        - observability
      summary: Get a run's trace
      description: >-
        Full detailed trace for one run via the contract's ``get_trace``.


        The contract's ``get_trace`` always returns a trace or raises: an absent
        trace

        is ``TraceNotFoundError`` → 404, and every other backend error
        propagates as a

        loud 500.
      operationId: get_api_observability_runs_trace_id_trace
      parameters:
        - in: path
          name: trace_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                required:
                  - data
                type: object
          description: Success.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '501':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````