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

# Read a monitor's review sample

> Returns the review state, the latest sample pass, the sampled traces with verdicts and findings, and whether sampling can continue.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json get /monitors/{monitor_id}/sample
openapi: 3.1.0
info:
  title: Lemma Platform API
  description: Lemma Platform HTTP API for AI observability and workspace operations.
  version: 0.1.0
servers:
  - url: https://api.uselemma.ai
    description: Lemma production API
security:
  - bearerAuth: []
paths:
  /monitors/{monitor_id}/sample:
    get:
      tags:
        - Monitors / Review
      summary: Read a monitor's review sample
      description: >-
        Returns the review state, the latest sample pass, the sampled traces
        with verdicts and findings, and whether sampling can continue.
      operationId: get_monitor_sample
      parameters:
        - name: monitor_id
          in: path
          required: true
          description: Monitor ID.
          schema:
            type: string
      responses:
        '200':
          description: Read a monitor's review sample
          content:
            application/json:
              schema:
                type: object
                properties:
                  monitor_id:
                    type: string
                    format: uuid
                  review:
                    type: string
                    enum:
                      - not_required
                      - pending
                      - reviewed
                      - skipped_unreviewed
                      - marked_reviewed
                  sample_size:
                    type:
                      - integer
                      - 'null'
                  pass:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                        format: uuid
                      pass_number:
                        type: integer
                      state:
                        type: string
                        enum:
                          - running
                          - completed
                          - failed
                      end_reason:
                        type:
                          - string
                          - 'null'
                        enum:
                          - full
                          - capped
                          - window_exhausted
                          - early_start
                          - null
                      matches_found:
                        type: integer
                      traces_scanned:
                        type: integer
                    required:
                      - id
                      - pass_number
                      - state
                      - end_reason
                      - matches_found
                      - traces_scanned
                    additionalProperties: false
                  sample:
                    type: array
                    items:
                      type: object
                      properties:
                        trace_id:
                          type: string
                          format: uuid
                        correction_id:
                          type:
                            - string
                            - 'null'
                          format: uuid
                        verdict:
                          type:
                            - string
                            - 'null'
                          enum:
                            - match
                            - not_match
                            - null
                        reason:
                          type:
                            - string
                            - 'null'
                        findings:
                          type: array
                          items:
                            type: object
                            properties:
                              trace_id:
                                type: string
                                format: uuid
                              title:
                                type: string
                              rationale:
                                type: string
                              category:
                                type: string
                            required:
                              - trace_id
                              - title
                              - rationale
                              - category
                            additionalProperties: false
                      required:
                        - trace_id
                        - correction_id
                        - verdict
                        - reason
                        - findings
                      additionalProperties: false
                  can_keep_sampling:
                    type: boolean
                  backfill:
                    type:
                      - object
                      - 'null'
                    properties:
                      judged:
                        type: integer
                        minimum: 0
                      dispatched:
                        type: integer
                        minimum: 0
                    required:
                      - judged
                      - dispatched
                    additionalProperties: false
                required:
                  - monitor_id
                  - review
                  - sample_size
                  - pass
                  - sample
                  - can_keep_sampling
                  - backfill
                additionalProperties: false
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                  retryable:
                    type: boolean
                  retry_after_seconds:
                    type: number
                    minimum: 0
                required:
                  - detail
                  - code
                  - retryable
                additionalProperties: false
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    const: internal_error
                  retryable:
                    type: boolean
                    const: false
                  request_id:
                    type: string
                required:
                  - detail
                  - code
                  - retryable
                  - request_id
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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