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

> List project-scoped visible insights: each agent's top 15 active insights by priority, ordered by priority (0 is most urgent). Lower-ranked insights are not returned. member_count counts processed member issues only. Pass limit and offset to page; defaults match issues (50 / max 200).



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json get /insights
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:
  /insights:
    get:
      tags:
        - Insights
      summary: List insights
      description: >-
        List project-scoped visible insights: each agent's top 15 active
        insights by priority, ordered by priority (0 is most urgent).
        Lower-ranked insights are not returned. member_count counts processed
        member issues only. Pass limit and offset to page; defaults match issues
        (50 / max 200).
      operationId: list_insights
      parameters:
        - name: project_id
          in: query
          required: true
          description: Project ID.
          schema:
            type: string
        - name: agent_name
          in: query
          required: false
          description: >-
            Agent to scope to. Omit for all agents; pass empty for the untagged
            agent.
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Maximum number of records to return.
          schema:
            type: integer
            minimum: 1
        - name: offset
          in: query
          required: false
          description: Number of records to skip.
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: Insights list
          content:
            application/json:
              schema:
                type: object
                properties:
                  insights:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        project_id:
                          type: string
                        agent_name:
                          type: string
                        title:
                          type: string
                        fix_location_primary:
                          type: string
                          enum:
                            - system_prompt
                            - tools
                            - harness
                        fix_location_secondary:
                          type:
                            - string
                            - 'null'
                          enum:
                            - system_prompt
                            - tools
                            - harness
                            - null
                        confidence:
                          type: string
                          enum:
                            - high
                            - medium
                            - low
                        priority:
                          type: number
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                        member_count:
                          type: integer
                          minimum: 0
                      required:
                        - id
                        - project_id
                        - agent_name
                        - title
                        - fix_location_primary
                        - fix_location_secondary
                        - confidence
                        - priority
                        - created_at
                        - updated_at
                        - member_count
                      additionalProperties: false
                  total:
                    type: number
                  limit:
                    type: number
                  offset:
                    type: number
                  has_more:
                    type: boolean
                required:
                  - insights
                  - total
                  - limit
                  - offset
                  - has_more
                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.