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

# Get all test runs with pagination



## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api get /aiQualityCheck/testRun
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /aiQualityCheck/testRun:
    get:
      tags:
        - AI Quality Check
      summary: Get all test runs with pagination
      operationId: getAiQualityTestRuns
      parameters:
        - $ref: '#/components/parameters/limitParam'
        - $ref: '#/components/parameters/offsetParam'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AiTestRun'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    limitParam:
      name: limit
      in: query
      required: false
      description: The number of items to return
      schema:
        type: integer
        default: 100
        minimum: 1
        maximum: 1000
      example: 100
    offsetParam:
      name: offset
      in: query
      required: false
      description: The number of items to skip
      schema:
        type: integer
        default: 0
        minimum: 0
      example: 0
  schemas:
    AiTestRun:
      type: object
      description: >-
        Represents a test run for AI quality checks. A test run is a collection
        of tickets that are tested against an expected output.
      properties:
        id:
          type: integer
          description: The ID of the test run
        aiAgentId:
          type: string
          nullable: true
          description: >-
            Id code of the AI agent for this test run (for filtering test cases
            by agent). If null, all test cases will be tested using their
            reference agents.
        aiAgentName:
          type: string
          nullable: true
          description: >-
            Corresponding name of the AI agent, pulled via FK from the ai_agent
            table
        state:
          type: string
          enum:
            - processing
            - completed
          description: Current state of the test run
        config:
          type: object
          nullable: true
          description: If specified, any additional test run parameters
        createdBy:
          type: integer
          nullable: true
          description: ID of the user who created the test run
        createdAt:
          type: string
          format: date-time
          description: Date when the test run was created
        endDate:
          type: string
          format: date-time
          nullable: true
          description: Date when the test run was completed
        ticketsScheduledForTesting:
          type: integer
          nullable: true
          description: Number of tickets scheduled for testing
        ticketsTested:
          type: integer
          nullable: true
          description: Number of tickets tested
        successfulTests:
          type: integer
          nullable: true
          description: Number of successful tests
        description:
          type: string
          nullable: true
          description: Optional description of the test run
    Error:
      type: object
      description: Data format of Enneo error messages
      properties:
        error:
          type: string
          example: Contract 121 could not be processed
          description: Readable error message that should be shown to the user
        details:
          type: string
          example: >-
            Uncatched null point exception in testFunction() in
            /app/src/file:212
          description: Not easily readable error message that is for the developer
        txId:
          type: string
          example: c916167c94
          description: >-
            Internal transaction id. Useful for debugging. Corresponds to the
            OpenTelemetry trace ID.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````