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

# Get run trace

> Return low-level execution trace events for debugging one run. Workflow runs expose observability phases or step records; agent runs expose parsed trace.jsonl events. The shape is intentionally extensible, but common fields are documented.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/runs/{id}/trace
openapi: 3.1.0
info:
  title: Eigenpal API
  version: 1.0.0
  description: >-
    Public REST API for inspecting automations, starting and monitoring runs,
    managing files, collecting human reviews, and running evaluations.
  contact:
    name: Eigenpal
    url: https://eigenpal.com
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
  - url: https://studio.eigenpal.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Metadata
    description: Authenticate and inspect the current API context.
  - name: Automations
    description: >-
      Inspect runnable workflow and agent automations, their versions, triggers,
      and source sync state.
  - name: Runs
    description: >-
      Start, monitor, retry, review, and debug automation runs, including
      artifacts.
  - name: Reviews
    description: >-
      Record human review verdicts, manage corrected outputs, and monitor review
      health.
  - name: Files
    description: Upload reusable files for later run or dataset use.
  - name: Evaluation
    description: >-
      Manage datasets, examples, evaluators, experiment batches, evaluator
      scores, and run promotion workflows.
paths:
  /api/v1/runs/{id}/trace:
    get:
      tags:
        - Runs
      summary: Get run trace
      description: >-
        Return low-level execution trace events for debugging one run. Workflow
        runs expose observability phases or step records; agent runs expose
        parsed trace.jsonl events. The shape is intentionally extensible, but
        common fields are documented.
      operationId: runs.trace.get
      parameters:
        - in: path
          name: id
          schema:
            type: string
            description: Run id.
          required: true
          description: Run id.
      responses:
        '200':
          description: Run trace events.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunTraceResponse'
        '400':
          description: Validation error. Request shape did not match the spec.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '403':
          description: API key lacks required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '413':
          description: Payload too large. Upload exceeded the per-request size cap.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '429':
          description: Rate limit exceeded
          headers:
            Retry-After:
              description: Seconds until the next request may succeed
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
components:
  schemas:
    RunTraceResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/RunTraceEvent'
          description: >-
            Chronological trace events. Workflow runs return observability
            phases or step executions; agent runs return parsed trace.jsonl
            events.
      required:
        - events
      additionalProperties: false
    ApiErrorEnvelope:
      type: object
      properties:
        issues:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorIssue'
        requestId:
          type: string
          description: Request id echoed via the x-request-id header
        hint:
          description: Suggested fix for known error patterns
          type: string
        docsUrl:
          description: Link to relevant docs
          type: string
      required:
        - issues
        - requestId
      additionalProperties: false
    RunTraceEvent:
      type: object
      properties:
        type:
          description: >-
            Event type when present. Agent traces mirror trace.jsonl events;
            workflow traces use execution phase or step records.
          type: string
        phase:
          description: Workflow execution phase, when present.
          type: string
        stepName:
          description: Workflow step name, when present.
          type: string
        status:
          description: Event or execution status, when present.
          type: string
        startedAt:
          description: Event start timestamp.
          anyOf:
            - type: string
            - type: 'null'
        completedAt:
          description: Event completion timestamp.
          anyOf:
            - type: string
            - type: 'null'
        message:
          description: Human-readable event message.
          anyOf:
            - type: string
            - type: 'null'
      additionalProperties: {}
      description: >-
        Trace event emitted by a workflow or agent run. Extra fields depend on
        the run type and event source.
    ApiErrorIssue:
      type: object
      properties:
        field:
          type: string
          description: JSON path of the offending field, or "<root>"
        message:
          type: string
          description: Human-readable error message
        code:
          type: string
          description: >-
            Machine-readable error code (e.g. invalid_value, not_found,
            api_trigger_disabled, manual_trigger_disabled)
        severity:
          type: string
          enum:
            - error
            - warning
          description: Issue severity
      required:
        - field
        - message
        - code
        - severity
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key issued from Settings → API Keys. Pass as `Authorization: Bearer
        <key>`.

````