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

# Seed a monitor

> Replay the runs the monitor would have made over a past period, without turning it on. The seed continues in the background. Save `simulation_id` from the response, then call List monitor runs with that id to read the results.



## OpenAPI

````yaml /api-rest/openapi/openapi_search_monitoring.json post /v1/monitors/{monitor_id}/seed
openapi: 3.1.0
info:
  title: Monitors API
  description: >-
    Run a saved Bigdata search on a schedule and get structured events when new
    content matches. Test a monitor on recent history before you turn it on.
  version: 1.0.0
servers:
  - url: https://api.bigdata.com
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Monitors
    description: Create a monitor, test it on past content, then turn it on.
paths:
  /v1/monitors/{monitor_id}/seed:
    post:
      tags:
        - Monitors
      summary: Seed a monitor
      description: >-
        Replay the runs the monitor would have made over a past period, without
        turning it on. The seed continues in the background. Save
        `simulation_id` from the response, then call List monitor runs with that
        id to read the results.
      operationId: seedMonitor
      parameters:
        - $ref: '#/components/parameters/MonitorId'
        - name: end_timestamp
          in: query
          required: true
          description: >-
            When the test should end. ISO 8601 with a timezone, at least five
            minutes ago.
          schema:
            type: string
            format: date-time
          example: '2026-10-23T09:00:00Z'
        - name: start_timestamp
          in: query
          required: false
          description: >-
            When the test should start. ISO 8601 with a timezone, earlier than
            `end_timestamp`. Leave this out to test one run.
          schema:
            type: string
            format: date-time
          example: '2026-10-23T06:00:00Z'
      responses:
        '202':
          description: >-
            The test was accepted and is running in the background. Read the
            results with List monitor runs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationResponse'
              example:
                data:
                  monitor_id: 6af74cb7-0a6e-4ea0-8421-acde4c85e56a
                  simulation_id: 8c1f0a2e-6b4d-4f1a-9c3e-1a2b3c4d5e6f
                  status: PENDING
                  phase: accepted
                  runs_requested: 3
                  retention_warning: null
                metadata:
                  request_id: 9f2c6b18-4e7a-4d05-8c31-0a6e5d2b91f4
                  timestamp: '2026-10-23T09:00:00Z'
        '401':
          description: An API key is required.
        '404':
          description: No monitor was found for this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - message: Monitor not found
                metadata:
                  request_id: 9f2c6b18-4e7a-4d05-8c31-0a6e5d2b91f4
                  timestamp: '2026-10-23T09:00:00Z'
        '422':
          description: The time window is invalid, or it would need more than 90 runs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - message: 'end_timestamp: must be at least 5 minutes in the past'
                metadata:
                  request_id: 9f2c6b18-4e7a-4d05-8c31-0a6e5d2b91f4
                  timestamp: '2026-10-23T09:00:00Z'
        '500':
          description: The monitor could not be saved, or a run could not be queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - message: Internal server error
                metadata:
                  request_id: 9f2c6b18-4e7a-4d05-8c31-0a6e5d2b91f4
                  timestamp: '2026-10-23T09:00:00Z'
        '503':
          description: Runs cannot be queued right now. Try again shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - message: Service unavailable
                metadata:
                  request_id: 9f2c6b18-4e7a-4d05-8c31-0a6e5d2b91f4
                  timestamp: '2026-10-23T09:00:00Z'
components:
  parameters:
    MonitorId:
      name: monitor_id
      in: path
      required: true
      description: Id returned when you created the monitor.
      schema:
        type: string
        format: uuid
      example: 6af74cb7-0a6e-4ea0-8421-acde4c85e56a
  schemas:
    SimulationResponse:
      type: object
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/SimulationAccepted'
        metadata:
          $ref: '#/components/schemas/Metadata'
      required:
        - data
        - metadata
    ErrorResponse:
      type: object
      additionalProperties: false
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorEntry'
        metadata:
          $ref: '#/components/schemas/Metadata'
      required:
        - errors
        - metadata
    SimulationAccepted:
      type: object
      additionalProperties: false
      properties:
        monitor_id:
          type: string
          format: uuid
        simulation_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - PENDING
          description: The replay has been queued.
        phase:
          type: string
          enum:
            - accepted
          description: Always `accepted` here. Check List monitor runs for later progress.
        runs_requested:
          type: integer
          minimum: 1
          description: How many runs were queued.
        retention_warning:
          type:
            - string
            - 'null'
          description: >-
            Null when the test is inside the normal content window. Otherwise
            some sources only keep about two weeks of content, so this test may
            return fewer events than a live monitor would have seen.
      required:
        - monitor_id
        - simulation_id
        - status
        - phase
        - runs_requested
        - retention_warning
    Metadata:
      type: object
      additionalProperties: false
      properties:
        request_id:
          type: string
          description: Id for this request. Include it if you contact support.
        timestamp:
          type: string
          format: date-time
      required:
        - request_id
        - timestamp
    ErrorEntry:
      type: object
      additionalProperties: false
      properties:
        message:
          type: string
          description: What went wrong. Validation errors name the field, then the problem.
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key from the Bigdata Developer Platform.

````

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