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

# Get test runs

> Get test runs for a workspace



## OpenAPI

````yaml /public-apis/openapi/test-runs.json get /v1/test-runs
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - test-runs
  description: API documentation for Maxim SDK test-runs endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/test-runs:
    get:
      tags:
        - Test run
      summary: Get test runs
      description: Get test runs for a workspace
      parameters:
        - schema:
            type: string
            description: Unique identifier for the workspace
          required: true
          name: workspaceId
          in: query
        - schema:
            type: string
            description: Test run ID to fetch specific run
          required: false
          name: id
          in: query
        - schema:
            type: string
            nullable: true
            description: Cursor for pagination
          required: false
          name: cursor
          in: query
        - schema:
            type: boolean
            nullable: true
            default: false
            description: Whether this is a run report
          required: false
          name: isRunReport
          in: query
        - schema:
            type: number
            nullable: true
            maximum: 100
            default: 20
            description: 'Maximum number of records to return (max: 100)'
          required: false
          name: limit
          in: query
        - schema:
            type: array
            items:
              type: object
              properties:
                name:
                  type: string
                operator:
                  type: string
                value:
                  anyOf:
                    - type: string
                    - type: number
                    - nullable: true
                    - type: array
                      items:
                        type: string
                      default: []
                    - nullable: true
                combinator:
                  type: string
                  enum:
                    - and
                    - or
                  default: and
              required:
                - name
                - operator
            description: Additional filters for the query
          required: false
          name: filters
          in: query
      responses:
        '200':
          description: Successfully retrieved test runs
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      runs:
                        type: array
                        items:
                          type: object
                      total:
                        type: number
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````