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

# List previews

> This monitor's previews from the last 7 days, newest first, without their events. A preview still `QUEUED` is not listed yet.



## OpenAPI

````yaml /api-rest/openapi/openapi_search_monitoring.json get /v1/monitors/{monitor_id}/preview
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}/preview:
    get:
      tags:
        - Monitors
      summary: List previews
      description: >-
        This monitor's previews from the last 7 days, newest first, without
        their events. A preview still `QUEUED` is not listed yet.
      operationId: listPreviews
      parameters:
        - $ref: '#/components/parameters/MonitorId'
        - name: limit
          in: query
          required: false
          description: Most previews to return.
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 50
      responses:
        '200':
          description: Previews returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreviewListResponse'
              example:
                results:
                  - preview_id: 1d2e3f4a-5b6c-7d8e-9f0a-1b2c3d4e5f60
                    status: COMPLETED
                    requested_at: '2026-10-23T09:00:00Z'
                    window:
                      start: '2026-10-22T09:00:00Z'
                      end: '2026-10-23T09:00:00Z'
                      picked_by: volume
                      volume: 120
                    event_count: 4
                    error: null
                pagination:
                  has_cursor: false
                  cursor: 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'
        '413':
          description: The response is too large. Request fewer previews.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - message: Response too large
                metadata:
                  request_id: 9f2c6b18-4e7a-4d05-8c31-0a6e5d2b91f4
                  timestamp: '2026-10-23T09:00:00Z'
        '422':
          description: >-
            Something in the request is invalid. Each error names the field and
            what to change.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - message: 'schedule.frequency: value is not a valid frequency'
                metadata:
                  request_id: 9f2c6b18-4e7a-4d05-8c31-0a6e5d2b91f4
                  timestamp: '2026-10-23T09:00:00Z'
        '500':
          description: The previews could not be read.
          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'
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:
    PreviewListResponse:
      type: object
      additionalProperties: false
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/PreviewSummary'
        pagination:
          $ref: '#/components/schemas/Pagination'
        metadata:
          $ref: '#/components/schemas/Metadata'
      required:
        - results
        - pagination
        - metadata
    ErrorResponse:
      type: object
      additionalProperties: false
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorEntry'
        metadata:
          $ref: '#/components/schemas/Metadata'
      required:
        - errors
        - metadata
    PreviewSummary:
      type: object
      additionalProperties: false
      description: Preview without events. A preview still `QUEUED` is not listed.
      properties:
        preview_id:
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/PreviewStatus'
        requested_at:
          type: string
          format: date-time
        window:
          description: Null while the preview is queued.
          anyOf:
            - $ref: '#/components/schemas/PreviewWindow'
            - type: 'null'
        event_count:
          type: integer
          minimum: 0
        error:
          type:
            - string
            - 'null'
      required:
        - preview_id
        - status
        - requested_at
        - window
        - event_count
        - error
    Pagination:
      type: object
      additionalProperties: false
      properties:
        has_cursor:
          type: boolean
          description: >-
            True when another page is available. The monitor list never has
            another page.
        cursor:
          type:
            - string
            - 'null'
          description: >-
            Pass this as `cursor` to get the next page. Null when this is the
            last page.
      required:
        - has_cursor
        - cursor
    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
    PreviewStatus:
      type: string
      enum:
        - QUEUED
        - PENDING
        - COMPLETED
        - FAILED
      description: >-
        `QUEUED` is accepted and has no window yet. `PENDING` is reading
        content. `COMPLETED` is ready. `FAILED` could not be completed.
    PreviewWindow:
      type: object
      additionalProperties: false
      properties:
        start:
          type: string
          format: date-time
        end:
          type: string
          format: date-time
        picked_by:
          type: string
          enum:
            - volume
            - pinned
            - fallback_workday
          description: >-
            `volume` is the longest recent period that fits the chunk budget.
            `pinned` was chosen explicitly. `fallback_workday` is used when the
            volume check failed.
        volume:
          type:
            - integer
            - 'null'
          description: Measured search volume. Null when it was not measured.
      required:
        - start
        - end
        - picked_by
        - volume
  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.