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

# List monitor traces

> Lists traces the monitor judged as fitting in the window, newest first. `total` is the fitting-trace count in the window. Pass offset for a page. The window includes start and excludes end.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json get /projects/{project_id}/monitors/{monitor_id}/traces
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:
  /projects/{project_id}/monitors/{monitor_id}/traces:
    get:
      tags:
        - Monitors
      summary: List monitor traces
      description: >-
        Lists traces the monitor judged as fitting in the window, newest first.
        `total` is the fitting-trace count in the window. Pass offset for a
        page. The window includes start and excludes end.
      operationId: list_monitor_traces
      parameters:
        - name: project_id
          in: path
          required: true
          description: Project ID.
          schema:
            type: string
        - name: monitor_id
          in: path
          required: true
          description: Monitor ID.
          schema:
            type: string
        - name: start
          in: query
          required: true
          description: Window start, inclusive.
          schema:
            type: string
        - name: end
          in: query
          required: true
          description: Window end, exclusive.
          schema:
            type: string
        - name: offset
          in: query
          required: false
          description: Number of fitting traces to skip.
          schema:
            type: integer
            minimum: 0
        - name: include_total
          in: query
          required: false
          description: >-
            When false, skip the fitting-trace count. Later pages reuse the
            first page's total.
          schema:
            type: boolean
        - name: limit
          in: query
          required: false
          description: Page size, from 1 to 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Fitting traces
          content:
            application/json:
              schema:
                type: object
                properties:
                  traces:
                    type: array
                    items:
                      type: object
                      properties:
                        trace_id:
                          type: string
                          format: uuid
                        timestamp:
                          type: string
                        fit:
                          type: boolean
                        summary:
                          type: string
                        agent_name:
                          type:
                            - string
                            - 'null'
                        span_count:
                          type: integer
                          minimum: 0
                        total_duration_ms:
                          type:
                            - number
                            - 'null'
                        has_error:
                          type: boolean
                      required:
                        - trace_id
                        - timestamp
                        - fit
                        - summary
                        - agent_name
                        - span_count
                        - total_duration_ms
                        - has_error
                      additionalProperties: false
                  total:
                    type:
                      - integer
                      - 'null'
                    minimum: 0
                required:
                  - traces
                  - total
                additionalProperties: false
        '400':
          description: Bad request
          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
                required:
                  - detail
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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