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

# Get run trajectory

> Return the latest agent run with this run_id as an ordered trajectory: request, harness, steps (context, model calls, tool calls, observations), final answer, totals, and capture gaps, with child runs nested under the tool call that started them.



## OpenAPI

````yaml /docs/reference/openapi.json get /telemetry/runs/{run_id}/trajectory
openapi: 3.1.0
info:
  description: >-
    The HTTP API of an agent served with `omniserve run --agent agent.py`: runs,
    approvals, budgets, background tasks, sessions and the evidence of every
    run.
  title: OmniServe
  version: latest
servers:
  - description: omniserve run, locally
    url: http://localhost:8000
security: []
paths:
  /telemetry/runs/{run_id}/trajectory:
    get:
      tags:
        - Telemetry
      summary: Get run trajectory
      description: >-
        Return the latest agent run with this run_id as an ordered trajectory:
        request, harness, steps (context, model calls, tool calls,
        observations), final answer, totals, and capture gaps, with child runs
        nested under the tool call that started them.
      operationId: get_run_trajectory_telemetry_runs__run_id__trajectory_get
      parameters:
        - in: path
          name: run_id
          required: true
          schema:
            title: Run Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: >-
                  Response Get Run Trajectory Telemetry Runs  Run Id  Trajectory
                  Get
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````