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

# List Monitor Events

> Lists paginated snapshot events (newest first) with pre-signed snapshot_url values. Supports count_only=true for total_count only.



## OpenAPI

````yaml openapi/monitors.json GET /v1/monitors/{monitor_id}/events
openapi: 3.0.3
info:
  title: Monitors API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/monitors/{monitor_id}/events:
    get:
      summary: List Monitor Events
      description: >-
        Lists snapshot events (newest first) with short-lived pre-signed
        `snapshot_url` values.
      parameters:
        - name: monitor_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^monitor_
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: cursor
          in: query
          schema:
            type: string
          description: Opaque cursor from `next_cursor`.
        - name: count_only
          in: query
          schema:
            type: string
            enum:
              - 'true'
              - '1'
          description: 'When true, returns only `{ "total_count": N }`.'
      responses:
        '200':
          description: Event page or count.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/MonitorEvent'
                      has_more:
                        type: boolean
                      next_cursor:
                        type: string
                        nullable: true
                      total_count:
                        type: integer
                  - type: object
                    properties:
                      total_count:
                        type: integer
                    required:
                      - total_count
        '400':
          description: Invalid monitor_id or cursor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid API key.
        '404':
          description: Monitor not found.
        '500':
          description: Internal server error.
      security:
        - Authorization: []
components:
  schemas:
    MonitorEvent:
      type: object
      properties:
        id:
          type: string
          description: Event identifier (`run_id` or `created_at` fallback).
        run_id:
          type: string
          nullable: true
        created:
          type: integer
          nullable: true
          description: Unix timestamp (seconds).
        changed:
          type: boolean
          nullable: true
        summary:
          type: string
          nullable: true
        snapshot_url:
          type: string
          format: uri
          nullable: true
          description: Short-lived pre-signed URL to retrieve snapshot JSON.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        monitor_id:
          type: string
          description: Present on some create/update error responses.
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form Bearer <token>, where <token>
        is your auth token.

````