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

# Monitor Runs

> The monitor's past runs, newest first (open one with `GET /monitors/runs/{run_id}`).



## OpenAPI

````yaml /api-reference/agent/openapi.json get /monitors/{monitor_id}/runs
openapi: 3.1.0
info:
  title: NewsCatcher Agent API
  description: >-
    Agent runs (events from a query, or news about companies), company lists and
    monitors. Authenticate with your API key in the x-api-key header.
  version: 1.0.0
servers:
  - url: https://api.newscatcherapi.com/agent
    description: Production server
security: []
paths:
  /monitors/{monitor_id}/runs:
    get:
      tags:
        - monitors
      summary: Monitor Runs
      description: >-
        The monitor's past runs, newest first (open one with `GET
        /monitors/runs/{run_id}`).
      operationId: monitor_runs_monitors__monitor_id__runs_get
      parameters:
        - name: monitor_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Monitor Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorRunListResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MonitorRunListResponse:
      properties:
        runs:
          items:
            $ref: '#/components/schemas/MonitorRunSummary'
          type: array
          title: Runs
      type: object
      required:
        - runs
      title: MonitorRunListResponse
      description: A monitor's runs, newest first.
    ErrorResponse:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
        - code
        - message
      title: ErrorResponse
      description: 'Every error: a stable code and a message to show the user.'
    MonitorRunSummary:
      properties:
        run_id:
          type: string
          format: uuid
          title: Run Id
        role:
          type: string
          enum:
            - scheduled
            - source
          title: Role
          default: scheduled
        status:
          type: string
          title: Status
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        finished_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Finished At
      type: object
      required:
        - run_id
        - status
      title: MonitorRunSummary
      description: >-
        One of a monitor's runs: a scheduled run, or the run it was made from
        (its first run).
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.