> ## 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 telemetry events

> Get stored telemetry events for a specific session as JSON.



## OpenAPI

````yaml /docs/reference/openapi.json get /events/{session_id}/list
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:
  /events/{session_id}/list:
    get:
      tags:
        - Sessions
      summary: Get telemetry events
      description: Get stored telemetry events for a specific session as JSON.
      operationId: list_telemetry_events_events__session_id__list_get
      parameters:
        - in: path
          name: session_id
          required: true
          schema:
            title: Session Id
            type: string
        - description: Optional run id to isolate one run inside the session.
          in: query
          name: run_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Optional run id to isolate one run inside the session.
            title: Run Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventsResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    EventsResponse:
      description: Response model for telemetry events endpoint.
      properties:
        count:
          description: Number of telemetry events
          title: Count
          type: integer
        events:
          description: Telemetry events list
          items:
            additionalProperties: true
            type: object
          title: Events
          type: array
        session_id:
          description: Session ID
          title: Session Id
          type: string
      required:
        - session_id
        - events
        - count
      title: EventsResponse
      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

````