> ## 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.

# List telemetry traces

> Return telemetry traces filtered by trace, run, session, task, agent, workflow, model, or status.



## OpenAPI

````yaml /docs/reference/openapi.json get /telemetry/traces
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/traces:
    get:
      tags:
        - Telemetry
      summary: List telemetry traces
      description: >-
        Return telemetry traces filtered by trace, run, session, task, agent,
        workflow, model, or status.
      operationId: list_traces_telemetry_traces_get
      parameters:
        - in: query
          name: trace_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Trace Id
        - in: query
          name: run_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Run Id
        - in: query
          name: session_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Session Id
        - in: query
          name: task_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Task Id
        - in: query
          name: agent_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Agent Id
        - in: query
          name: workflow_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Workflow Id
        - in: query
          name: model
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Model
        - in: query
          name: status
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Status
        - in: query
          name: normalize
          required: false
          schema:
            default: false
            title: Normalize
            type: boolean
        - in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 1000
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelemetryTraceListResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    TelemetryTraceListResponse:
      description: Response model for filtered telemetry traces.
      properties:
        count:
          description: Number of telemetry traces
          title: Count
          type: integer
        filters:
          additionalProperties: true
          title: Filters
          type: object
        traces:
          description: Telemetry traces
          items:
            additionalProperties: true
            type: object
          title: Traces
          type: array
      required:
        - traces
        - count
      title: TelemetryTraceListResponse
      type: object
    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

````